Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-13-2017, 11:12 AM   #1
Registered: Sep 2008
Posts: 521

Rep: Reputation: 37
cmake error Could not find libgcrypt libraries

running centos 6 server and trying to mount google drive using command line following the instructions here:
but I get cmake error, when I get to "#cmake ." the console throws:
CMake Error at cmake/Modules/FindLibGcrypt.cmake:46 (message):
  Could not find libgcrypt libraries
Call Stack (most recent call first):
  libgrive/CMakeLists.txt:5 (find_package)

-- Configuring incomplete, errors occurred!
See also "/root/grive/CMakeFiles/CMakeOutput.log".
I've been trawling goolge trying loads of things but nothing works. I installed boost 1-55-0 but if made no difference. How do I get past this error?

update: I managed to solve this (what a fandango...) so here's the steps in case anyone else runs into this problem:
1) one of the first things I did was yum groupinstall 'Development Tools', I don't know if this helped but it's what i did.
2) yum install yajl only gives yajl 1.x but grive needs yajl 2.x. The steps here solved this:
3) cmake still gave another error
error: ‘CURLOPT_XFERINFOFUNCTION’ was not declared in this scope
but the solution was to upgrade curl as well using the steps here:
this completed the build.

Last edited by tonj; 03-13-2017 at 12:54 PM. Reason: solved
Old 03-16-2017, 02:13 PM   #2
LQ Newbie
Registered: Nov 2013
Location: Murder Dubs... Oakland CA
Distribution: RHEL
Posts: 20

Rep: Reputation: Disabled
I know you already solved it... But the first one could have been solved by

yum -y install libgcrypt-devel

You installed a ton of dev libraries that you don't need as well but it doesn't really hurt.

Good job on figuring it out though!
Old 03-17-2017, 02:59 AM   #3
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
thankyou for that however I spoke too soon, the install was a lucky fluke and I don't know what I did right to make it work. I took a copy of the console history and wiped the machine to install grive again (trying to do it cleaner and better) and since then I haven't been able to get it installed (red faced). I found libgcrypt-devel, cmake runs ok but I keep getting an error when running make and can't find a solution:
/grive/libgrive/src/base/ In member function ‘void gr::State::FromLocal(const boost::filesystem:ath&, gr::Resource*, gr::Val&)’:
/root/grive/libgrive/src/base/ error: ‘struct std::basic_string<char, std::char_traits<char>, std::allocator<char> >’ has no member named ‘string’
make[2]: *** [libgrive/CMakeFiles/grive.dir/src/base/] Error 1
make[1]: *** [libgrive/CMakeFiles/grive.dir/all] Error 2
make: *** [all] Error 2

Last edited by tonj; 03-17-2017 at 03:01 AM.
Old 03-17-2017, 02:27 PM   #4
Registered: Feb 2006
Distribution: Debian Sid
Posts: 792

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
A web search for that error turned up this post on SO:

From answer #1:
Older versions of boost::filesystem::path didn't have a string member function.
I have not found out in which release of boost that changed.

I didn't try to compile libgrive but below is a minimal example program with the line that the error occurs on.
// g++ main.cpp -lboost_system -lboost_filesystem 

#include <boost/filesystem.hpp>
#include <iostream>

using boost::filesystem::directory_iterator;

int main(){
    for ( directory_iterator i( "/" ) ; i != directory_iterator() ; ++i )
	std::string fname = i->path().filename().string() ;
	std::cout <<  fname << "\n";
It compiles and runs on my system with boost 1.62.0.

What version of boost do you have installed?
Old 03-19-2017, 06:48 PM   #5
Registered: Sep 2008
Posts: 521

Original Poster
Rep: Reputation: 37
thanks for your further help, I managed to solve this (again). the missing ingredient was 'yum remove boost boost-devel', then install a later version of boost from the rpm. It doesn't matter which version as long as it's 1.55.0 or later. I now have grive compiling correctly every time.

Last edited by tonj; 03-19-2017 at 06:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
cmake error nasibeh.m Fedora 1 02-10-2014 10:46 PM
[SOLVED] cmake error windstory Linux - Newbie 2 11-22-2012 06:01 AM
cmake configure error ninja master Linux - Software 5 01-06-2011 06:14 AM
cmake: Using find_package(Boost) when FindBoost.cmake is not in the default location damien_d Programming 3 10-27-2010 03:40 PM
[SOLVED] Cmake error ~sHyLoCk~ Slackware 10 12-07-2009 01:00 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration