I use commands:
git clone http://git.code.sf.net/p/pharmit/code pharmit
cd pharmit/src
mkdir build
cmake .. -DCMAKE_CXX_FLAGS=-std=c++0x -DSMINA_DIR=/opt/aidrug/git/smina
Failed to build pharmit,the Error :
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- 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 Boost: /usr/include (found suitable version "1.53.0", minimum required is "1.53") found components: system regex filesystem program_options iostreams thread serialization date_time chrono atomic
-- Found Gperftools: /lib64/libtcmalloc_and_profiler.so
-- Found Cgicc: /lib/libcgicc.so
CMake Warning (dev) at /usr/local/cmake-3.23.0/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to find_package_handle_standard_args (FCGI) does
not match the name of the calling package (Fcgi). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/modules/FindFcgi.cmake:22 (find_package_handle_standard_args)
CMakeLists.txt:71 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found FCGI: /usr/local/include
-- Found ANN: /lib/libann.a
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/aidrug/git/pharmit/src/build
the Fcgi build use commands:
git clone https://github.com/FastCGI-Archives/fcgi2.git
cd fcgi2
autoreconf -i
./configure
make
make install
cd ..
use command: make -j12
success create Executable ’pharmit‘ but But an error occurred at runtime:
./pharmit: error while loading shared libraries: libcgicc.so.3: cannot open shared object file: No such file or directory
this is good news, build success,I solved the previous problems:
vim /etc/profile
add two lines:
LD_LIBRARY_PATH=/usr/lib
export LD_LIBRARY_PATH
source /etc/profile
./pharmit
USAGE: pharmit [options] --cmd command [pharma, dbcreate, dbcreateserverdir, dbsearch, server]
OPTIONS:
-cmd=<string> - command [pharma, dbcreate, dbcreateserverdir, dbsearch, server]
-dbdir=<string> - database directory(s)
-dbinfo=<string> - [dbcreateserverdir] JSON file describing database subset
-extra-info - Output additional molecular properties. Slower.
-file-partition - Partion database slices based on files
-help - Display available options (--help-hidden for more)
-in=<string> - input file(s)
-ligs=<string> - [dbcreateserverdir] Text file listing locations of molecules
-logdir=<string> - log directory for server
-max-hits=<n> - return at most n results
-max-nrot=<uint> - maximum allowed rotatable bonds
-max-orient=<n> - return at most n orientations of each conformation
-max-rmsd=<number> - maximum allowed RMSD; default max allowed by query
-max-weight=<uint> - maximum allowed molecular weight
-min-nrot=<uint> - minimum allowed rotatable bonds
-min-port=<uint> - port for minimization server
-min-server=<string> - minimization server address
-min-weight=<uint> - minimum allowed molecular weight
-no-shape-index - [dbcreateserverdir] Do not create shape indices
-noindex - [dbcreateserverdir] Do not create indices
-nthreads=<n> - utilize n threads; default 1
-out=<string> - output file(s)
-pharmaspec=<string> - pharmacophore specification
-port=<uint> - port for server to listen on
-prefixes=<string> - [dbcreateserverdir,server] File of directory prefixes to use for striping.
-print - print results
-q - quiet; suppress informational messages
-receptor=<string> - Receptor file for interaction pharmacophroes
-reduceconfs=<n> - return at most n conformations for each molecule
-show-query - print query points
-singledir=<string> - Specify a single directory to recreate on a dbcreateserverdir command
-singlesplit=<string> - Specify a single directory split to recreate on a dbcreateserverdir command
-sort-rmsd - Sort results by RMSD.
-timestamp=<string> - Specify timestamp to use for server dirs (for use with single)
-unweighted-rmsd - Compute minimal RMSD without radius weights
Command [pharma, dbcreate, dbsearch] required.</string></string></string></n></string></string></uint></string></string></n></uint></string></uint></uint></uint></number></n></uint></n></string></string></string></string></string></string>