HyPhy message board
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> HyPhy feedback >> can't install hyphy command line on Red Hat 4.5.1
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1322414552

Message started by indapa on Nov 27th, 2011 at 9:22am

Title: can't install hyphy command line on Red Hat 4.5.1
Post by indapa on Nov 27th, 2011 at 9:22am
Hi,

I am a newbie to HyPhy and attempting to install it on RedHat
I have cmake installed and run the command:
> cmake ./
just fine

Next, I try:
> make MP2
and get the error:

[100%] Building CXX object CMakeFiles/HYPHYMP.dir/src/mains/unix.cpp.o
Linking CXX executable HYPHYMP
/usr/bin/ld: CMakeFiles/HYPHYMP.dir/contrib/SQLite-3.6.17/sqlite3.c.o: undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlclose@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line
/lib64/libdl.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [HYPHYMP] Error 1
make[2]: *** [CMakeFiles/HYPHYMP.dir/all] Error 2
make[1]: *** [CMakeFiles/MP2.dir/rule] Error 2
make: *** [MP2] Error 2

I am not sure how to interpret the error message. Can you help me out?

Title: Re: can't install hyphy command line on Red Hat 4.5.1
Post by Sergei on Nov 27th, 2011 at 10:57am
Hi indapa,

Looks like our cmake script needs to be modified to look for libdl. In the meantime, please edit line 210 in CMakeLists.txt to read


Code (]
target_link_libraries(HYPHYMP crypto curl pthread ssl ldl)
[/code):

and then do

[code]
$rm CMake*.cahce
$cmake ./
$make MP2


Sergei

HyPhy message board » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2024. All Rights Reserved.