-
Notifications
You must be signed in to change notification settings - Fork 141
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
CentOS 6 compilation fail (yajl and boost-date-time) #34
Comments
You need yajl 2.x, not 1.x. I've never tried to build grive with older yajl. |
Thanks, I installed yajl from the git repo.
This was not enough, though, becasue
Do you think it possible to tell cmake to find yajl in Anyway, now cmake sees yajl, but there is still boost error:
...I wonder why it tries to find libboost_date_time.a, because, there is only libboost_date_time.so
|
I googled how to workaround it, but still there's another problem:
What this could be? Too old boost? |
set PKG_CONFIG_PATH=/usr/lib:/usr/local/lib to make pkg-config look in both locations (although I think it should be lib64 on centos) |
yes, it may be the problem of old boost... it seems i->path().filename() is just std::string there. you can try to workaround the issue by changing i->path().filename().string() to i->path().filename()... |
Thanks again, its worked!
Boost workaround worked too:
Second fix is same, removing string(). After that
Fix:
Big thanks for the help! ps. Wow that wasn't easy install. ;-) Maybe you could make troubleshooting page for standard errors. |
Oh... ld.so.conf modification was probably required because yajl should be also installed into /usr/local/lib64 under centos... because it's very strange that /usr/local was not present in the ld config... |
(I personally have no installed centos6 at the moment... in fact no rpm-based distros at all :)) |
Nor centos6, nor centos7 have Btw, centos7 contains yajl-2.0.4, but I didn't try grive2 there, though. Also, FYI, centos6 have by default boost-1.41.0, and boost148 (i.e. 1.48.0) as additional package in EPEL. Centos7 default is boost-1.53.0. |
Btw, you didn't mention in README that I tried to compile grive2 on CentOS 7, JFF:
👍 |
Maybe /usr/local/lib64 is included?
...and also git and c++ compiler :) I've already stated it here http://yourcmc.ru/wiki/Grive2 and maybe you're right and I should add it in README... |
I installed all requirements and just did git clone.
But
yajl
package is here, andboost_date_time
too. (There is no static libboost_date_time.a in Centos, though.)The text was updated successfully, but these errors were encountered: