[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Need urgent help


Hi Nitesh,
Try defining LIBRARIES and INCLUDE paths separately instead of ROOT

ex:
cmake .. \
        -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
        -DCMAKE_BUILD_TYPE=Release \
        -DWITH_GSSAPI=OFF \
        -DWITH_PCAP=OFF \
        -DWITH_LIBZ=ON \
        -DZLIB_LIBRARIES:FILEPATH=/usr/lib/ \
        -DZLIB_INCLUDE_DIRS:FILEPATH=/usr/include \
        -DOPENSSL_LIBRARIES:FILEPATH=/usr/lib/ \
        -DOPENSSL_INCLUDE_DIRS=/usr/include


Regards,
Saju
From: Nitesh Srivastava [mailto:nitesh.srivastava@xxxxxxxxxx]
Sent: Monday, March 27, 2017 11:16 AM
To: libssh@xxxxxxxxxx
Cc: Srikant Sana <srikant.sana@xxxxxxxxxx>; Sanjay 1. Kumar <sanjay.1.kumar@xxxxxxxxxx>
Subject: RE: Need urgent help

Dear Sir ,

I am compiling  libssh version 0.7.3 on Redhar linux from the source code available on the website .
But I am getting the following error
#pwd
/root/libssh/libssh-0.7.3/cmake
# cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX -DWITH_ZLIB=ON -DWITH_GSSAPI=OFF -DWITH_PCAP=OFF -DOPENSSL_ROOT_DIR:FILEPATH=${OPENSSL_ROOT_DIR} -DZLIB_ROOT_DIR:FILEPATH=${ZLIB_ROOT_DIR
-- Could NOT find NaCl (missing:  NACL_LIBRARIES NACL_INCLUDE_DIRS)
CMake Error at ConfigureChecks.cmake:74 (message):
  Could not detect openssl/des.h
Call Stack (most recent call first):
  CMakeLists.txt:78 (include)


-- Configuring incomplete, errors occurred!

But I tried to dig little further where I can see that openssl/des.h is available in my system at location /usr/include/openssl/des.h . But the problem
Is that its not able to get the fine config.h which is supposed to get generated during the process of cmake .

Please guide me in having compilation done . Also if you can share the config.h or libssh.so for the version of 7.3  it will be of great help.
I am using Redhat RHEL 7.1 OS on Intel Pentium processor ( HP Z400 Workstation)

Thanks & Regards
Nitesh

From: Saju Panikulam [mailto:spanikulam@xxxxxxxxxxxx]
Sent: Monday, March 27, 2017 5:54 PM
To: libssh@xxxxxxxxxx<mailto:libssh@xxxxxxxxxx>
Subject: RE: Need urgent help

Turn GSSAPI OFF in your CMake command line..

ex:
cmake .. \
        -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \
        -DCMAKE_BUILD_TYPE=Release \
        -DWITH_ZLIB=ON \
        -DWITH_GSSAPI=OFF \
        -DWITH_PCAP=OFF \
        -DOPENSSL_ROOT_DIR:FILEPATH=${OPENSSL_ROOT_DIR} \
        -DZLIB_ROOT_DIR:FILEPATH=${ZLIB_ROOT_DIR}

Regards,
Saju
From: Nitesh Srivastava [mailto:nitesh.srivastava@xxxxxxxxxx]
Sent: Monday, March 27, 2017 12:25 AM
To: libssh@xxxxxxxxxx<mailto:libssh@xxxxxxxxxx>
Subject: Need urgent help


Hi All,

We are getting below error while compiling the libssh 7.3 version on RHEL 7.1 OS.  We are in between compilation , Please suggest how to resolved this.

-- The C compiler identification is GNU 4.8.3
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test WITH_FPIC
-- Performing Test WITH_FPIC - Success
-- Performing Test WITH_STACK_PROTECTOR
-- Performing Test WITH_STACK_PROTECTOR - Success
-- Found ZLIB: /usr/lib/libz.so (found version "1.2.7")
-- Found OpenSSL: /usr/lib/libssl.so;/usr/lib/libcrypto.so (found version "1.0.1e")
-- Looking for pthread.h
-- Looking for 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
-- Found GSSAPI: /usr/lib/libgssapi_krb5.so;/usr/lib/libkrb5.so;/usr/lib/libk5crypto.so;/usr/lib/libcom_err.so
-- Could NOT find NaCl (missing:  NACL_LIBRARIES NACL_INCLUDE_DIRS)
-- Performing Test WITH_VISIBILITY_HIDDEN
-- Performing Test WITH_VISIBILITY_HIDDEN - Success
-- Looking for argp.h
-- Looking for argp.h - found
-- Looking for pty.h
-- Looking for pty.h - found
-- Looking for utmp.h
-- Looking for utmp.h - found
-- Looking for termios.h
-- Looking for termios.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for util.h
-- Looking for util.h - not found
-- Looking for libutil.h
-- Looking for libutil.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for sys/param.h
-- Looking for sys/param.h - found
-- Looking for arpa/inet.h
-- Looking for arpa/inet.h - found
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Looking for openssl/des.h
-- Looking for openssl/des.h - not found
CMake Error at ConfigureChecks.cmake:74 (message):
  Could not detect openssl/des.h
Call Stack (most recent call first):
  CMakeLists.txt:78 (include)

Kind Regards,
Nitesh




References:
Need urgent helpNitesh Srivastava <nitesh.srivastava@xxxxxxxxxx>
RE: Need urgent helpSaju Panikulam <spanikulam@xxxxxxxxxxxx>
RE: Need urgent helpNitesh Srivastava <nitesh.srivastava@xxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org