Installing DataStax C++ Driver for Apache Cassandra: Fedora 16

439 views
Skip to first unread message

Wallace Chipidza

unread,
Mar 26, 2014, 1:08:21 PM3/26/14
to cpp-dri...@lists.datastax.com
When I attempt to install the Driver I get:

user@domain # cmake . && make && make cql_demo && make cql_test && make test && make install
-- info CMAKE_BINARY_DIR: /home/arizona_cassandra/drive/cpp-driver
-- Could NOT find Boost
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
Could NOT find LIBSSH2 (missing: LIBSSH2_LIBRARIES LIBSSH2_INCLUDE_DIRS)
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
extra/ccm_bridge/cmake/Modules/FindLIBSSH2.cmake:51 (find_package_handle_standard_args)
extra/ccm_bridge/CMakeLists.txt:37 (find_package)

I installed Boost and LIBSSH2 and they are at location /usr/lib. I had no such problems installing on Ubuntu. Would you please point out how to resolve this issue?


Sorin Manolache

unread,
Mar 26, 2014, 1:21:57 PM3/26/14
to cpp-dri...@lists.datastax.com
Remove CMakeCache.txt and CMakeFiles from your build directory and try
again.

Sorin

Wallace Chipidza

unread,
Mar 26, 2014, 1:29:18 PM3/26/14
to cpp-dri...@lists.datastax.com
Thanks for your response. I get the same result though:

arizona_...@node24.princeton.vicci.org # cmake . && make && make cql_demo && make cql_test && make test && make install
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.47.0
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found version "1.0.0j") 
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.5") 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- info CMAKE_BINARY_DIR: /home/arizona_cassandra/drive/cpp-driver
-- Boost version: 1.47.0
-- Found the following Boost libraries:
--   system
--   date_time
-- Could NOT find Boost
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find LIBSSH2 (missing: LIBSSH2_LIBRARIES LIBSSH2_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  extra/ccm_bridge/cmake/Modules/FindLIBSSH2.cmake:51 (find_package_handle_standard_args)
  extra/ccm_bridge/CMakeLists.txt:37 (find_package)


-- Configuring incomplete, errors occurred!





To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-user+unsubscribe@lists.datastax.com.

Sorin Manolache

unread,
Mar 26, 2014, 1:51:01 PM3/26/14
to cpp-dri...@lists.datastax.com
On 2014-03-26 18:29, Wallace Chipidza wrote:
> Thanks for your response. I get the same result though:
>
> arizona_...@node24.princeton.vicci.org
> <mailto:arizona_...@node24.princeton.vicci.org> # cmake . && make
Have a look at CMakeLists.txt. In my copy I find:

find_package(Boost 1.41.0 COMPONENTS system thread unit_test_framework
date_time program_options REQUIRED)

Make sure that these components are installed. For my system (Debian)
the program_options come in a different package,
libboost-program-options-dev.

Also note that you need the development packages (-dev in Debian or
Ubuntu). So installing libssh2-1 is not enough, you have to install the
libssh2-1-dev package too.

Regards,
Sorin


> CMake Error at
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
> Could NOT find LIBSSH2 (missing: LIBSSH2_LIBRARIES LIBSSH2_INCLUDE_DIRS)
> Call Stack (most recent call first):
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288
> (_FPHSA_FAILURE_MESSAGE)
> extra/ccm_bridge/cmake/Modules/FindLIBSSH2.cmake:51
> (find_package_handle_standard_args)
> extra/ccm_bridge/CMakeLists.txt:37 (find_package)
>
>
> -- Configuring incomplete, errors occurred!



>
>
>
> On Wed, Mar 26, 2014 at 10:21 AM, Sorin Manolache <sor...@gmail.com
> <mailto:sor...@gmail.com>> wrote:
>
> On 2014-03-26 18:08, Wallace Chipidza wrote:
>
> When I attempt to install the Driver I get:
>
> user@domain # cmake . && make && make cql_demo && make cql_test
> && make test && make install
> -- info CMAKE_BINARY_DIR: /home/arizona_cassandra/drive/__cpp-driver
> -- Could NOT find Boost
> CMake Error at
> /usr/share/cmake/Modules/__FindPackageHandleStandardArgs.__cmake:97
> (MESSAGE):
> Could NOT find LIBSSH2 (missing: LIBSSH2_LIBRARIES
> LIBSSH2_INCLUDE_DIRS)
> Call Stack (most recent call first):
>
> /usr/share/cmake/Modules/__FindPackageHandleStandardArgs.__cmake:288 (_FPHSA_FAILURE_MESSAGE)
> extra/ccm_bridge/cmake/__Modules/FindLIBSSH2.cmake:51
> (find_package_handle_standard___args)
> extra/ccm_bridge/CMakeLists.__txt:37 (find_package)
>
> I installed Boost and LIBSSH2 and they are at location /usr/lib.
> I had no such problems installing on Ubuntu. Would you please
> point out how to resolve this issue?
>
>
> Remove CMakeCache.txt and CMakeFiles from your build directory and
> try again.
>
> Sorin
>
>
> To unsubscribe from this group and stop receiving emails from it,
> send an email to cpp-driver-user+unsubscribe@__lists.datastax.com
> <mailto:cpp-driver-user%2Bunsu...@lists.datastax.com>.
>
>
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cpp-driver-us...@lists.datastax.com
> <mailto:cpp-driver-us...@lists.datastax.com>.

Wallace Chipidza

unread,
Mar 26, 2014, 3:14:02 PM3/26/14
to cpp-dri...@lists.datastax.com
Thank you for the assistance! I have been able to compile everything but this line:

$ ~/cpp-driver/extra/ccm_bridge/src/cql_ccm_bridge.cpp:118:67: error: 'libssh2_session_handshake' was not declared in this scope




On Wed, Mar 26, 2014 at 10:51 AM, Sorin Manolache <sor...@gmail.com> wrote:
On 2014-03-26 18:29, Wallace Chipidza wrote:
Thanks for your response. I get the same result though:

<mailto:cpp-driver-user+unsub...@lists.datastax.com>.

To unsubscribe from this group and stop receiving emails from it, send an email to cpp-driver-user+unsubscribe@lists.datastax.com.

Wallace Chipidza

unread,
Mar 26, 2014, 3:22:08 PM3/26/14
to cpp-dri...@lists.datastax.com
Well, I changed the function call from libssh2_session_handshake to libssh2_session_startup after consulting the libssh2 source and was able to compile.

Thanks,

Wallace
Reply all
Reply to author
Forward
0 new messages