-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux - Cannot copy liblucene++.pc during "make install". Permissions error. #147
Comments
you need sudo privs to install it. run |
I just tried that ("sudo make install"). Same error. I did an "updatedb" and there simply is no "requirements.txt" file in the directory tree that expanded the s2v_reddit_2015_md.tar.gz file into using "tar -xvzf". |
not sure i follow. the error listed above:
its trying to copy the file
should install lucene just fine |
Sorry, I thought I had included the latest error messages when I see that I didn't. I get this error dump now: _ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' /usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:139: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning,_ |
could you run the following commands?
|
Sure: /usr/bin/make |
im not sure where python is coming from??? this is a c++ library it has nothing to do with python |
are you building lucene with tests? |
I don't know. I just followed the instructions in the readme.
…On Wed, Aug 12, 2020 at 10:33 PM polar ***@***.***> wrote:
are you building lucene with tests?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#147 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDR2B3QXGHFNJRUMPUXLKLSANGGLANCNFSM4P3ITMNQ>
.
--
Thanks,
Robert Oschler
Twitter: https://twitter.com/roschler <http://twitter.com/roschler>
LinkedIn: https://www.linkedin.com/in/natlang/
|
run the following then try again
|
That did it! Thanks so much for your help. Now I get to work with it. Would you happen to know if LucenePlusPlus has the FuzzyQuery speedup in version 4.0 of the Java version? http://blog.mikemccandless.com/2011/03/lucenes-fuzzyquery-is-100-times-faster.html Also, any tips or caveats about integrating LucenePlusPlus into an existing C++ app? I'm going to be putting it directly into an existing C++ app and not calling it externally. At least that's my intention, assuming it's architecturally feasible. |
i think the readme has a book, that ones pretty good |
Thanks. And does LucenePlusPlus have the 100 times FuzzyQuery speedup that is in version 4.0 of the Java version? |
I don't think there have been changes to If there's a (relatively) simple diff in the java version we can use as a reference to port it then that would be a good start. |
@alanw The speedup was added to the Java version in 2011, does that help at all? As far as a dif is concerned, below are are the FuzzyQuery.java - 3.6.3 - https://archive.apache.org/dist/lucene/java/3.6.2/
FuzzyQuery.java from 8.6.0 - https://lucene.apache.org/core/downloads.html
|
can this be opened as a seperate ticket please :) |
[robert@robert-desktop build]$ make install
[ 53%] Built target lucene++
[ 67%] Built target lucene++-contrib
[ 67%] Built target deletefiles
[ 67%] Built target indexfiles
[ 68%] Built target searchfiles
[ 68%] Built target gtest
[100%] Built target lucene++-tester
[100%] Built target gtest_main
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/pkgconfig/liblucene++.pc
CMake Error at cmake_install.cmake:44 (file):
file INSTALL cannot copy file
"/home/user/Documents/GitHub/ME/LucenePlusPlus/build/liblucene++.pc" to
"/usr/local/lib/pkgconfig/liblucene++.pc".
/home/robert/Documents/GitHub/ME/LucenePlusPlus/build/liblucene++.pc
/home/robert/Documents/GitHub/ME/LucenePlusPlus/build/liblucene++.pc
=================
I'm building on a Ubuntu 14.04 Linux box. I've installed the Boost libraries. The main make operation executes without error. However, when I execute "make install", I get the following messages with an error at the end:
make install
[ 53%] Built target lucene++
[ 67%] Built target lucene++-contrib
[ 67%] Built target deletefiles
[ 67%] Built target indexfiles
[ 68%] Built target searchfiles
[ 68%] Built target gtest
[100%] Built target lucene++-tester
[100%] Built target gtest_main
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/pkgconfig/liblucene++.pc
CMake Error at cmake_install.cmake:44 (file):
file INSTALL cannot copy file
"/home/user/Documents/GitHub/ME/LucenePlusPlus/build/liblucene++.pc" to
"/usr/local/lib/pkgconfig/liblucene++.pc".
I checked and the file "liblucene++.pc" definitely exists in the directory listed above. The destination directory exists too. However, it is owned by "root" and so are the files found in that directory (/usr/local/lib/pkgconfig/). To get around this I just "sudo" copied "liblucene++.pc" into that destination directory by hand and changed the ownership of that file to the current user. However, obviously I still can't complete "make install" successfully. Are there any other operations that are supposed to happen after that file copy operation that I will need to complete myself? What are there? Or is there another way to solve this.
Also, what is the best sample for me to look at to see how to integrate the code with an existing C++ project?
The text was updated successfully, but these errors were encountered: