LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-30-2007, 08:45 PM   #1
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Rep: Reputation: 15
problem installing libssh2-0.18


hi,

When i try and run make in libssh2 root dir i get the following:
Code:
db1:/home/efp/forCompile/libssh2-0.18# make
Making all in src
make[1]: Entering directory `/home/efp/forCompile/libssh2-0.18/src'
make  all-am
make[2]: Entering directory `/home/efp/forCompile/libssh2-0.18/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/efp/forCompile/libssh2-0.18/src'
make[1]: Leaving directory `/home/efp/forCompile/libssh2-0.18/src'
Making all in example
make[1]: Entering directory `/home/efp/forCompile/libssh2-0.18/example'
Making all in simple
make[2]: Entering directory `/home/efp/forCompile/libssh2-0.18/example/simple'
make  all-am
make[3]: Entering directory `/home/efp/forCompile/libssh2-0.18/example/simple'
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -I/usr/local/ssl/include  -L/usr/local/ssl/lib -lcrypto -o ssh2  ssh2.o ../../src/libssh2.la
gcc -g -O2 -I/usr/local/ssl/include -o .libs/ssh2 ssh2.o  -L/usr/local/ssl/lib -lcrypto ../../src/.libs/libssh2.so  -Wl,--rpath -Wl,/usr/local/lib
../../src/.libs/libssh2.so: undefined reference to `dlerror'
../../src/.libs/libssh2.so: undefined reference to `dlclose'
../../src/.libs/libssh2.so: undefined reference to `dlopen'
../../src/.libs/libssh2.so: undefined reference to `dlsym'
collect2: ld returned 1 exit status
make[3]: *** [ssh2] Error 1
make[3]: Leaving directory `/home/efp/forCompile/libssh2-0.18/example/simple'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/efp/forCompile/libssh2-0.18/example/simple'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/efp/forCompile/libssh2-0.18/example'
make: *** [all-recursive] Error 1
I must be missing some sort of lib. Anyone know what to do?
Im using Debian Etch.

Last edited by rh-penguin; 12-30-2007 at 08:47 PM.
 
Old 12-30-2007, 09:29 PM   #2
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Hey yeah, even I do not understand as to why this problem occurs. Can anyone try and explain it? What type of error is this 'recursive' thing?
 
Old 12-31-2007, 10:38 AM   #3
rh-penguin
Member
 
Registered: Sep 2006
Location: England, London
Distribution: Debian, BT2
Posts: 57

Original Poster
Rep: Reputation: 15
I got it working. This is what i did.

1. Fresh install of debian etch.
2. Removed openssl(its installed by default)
3. sudo apt-get install apache2 php5 libapache2-mod-php5 g++
4. sudo aptitude install php5-dev php5-cli php-pear libcurl3-openssl-dev zlib1g-dev
5. Installed libssh2-0.18 from source
6. Installed ssh2-0.10 from source(pecl install -f ssh2 didnt work for me) apparently this version needs to be patched and that was the case for me. If you also get this when trying to install ssh2,
Code:
make: *** [ssh2.lo] Error 1
ERROR: `make' failed
do the follwoing:
Download this patch: http://www.billpitz.com/howto/php-libssh2.diff and place it in the ssh2-0.10 dir.
Type: patch < php-libssh2.diff to apply the patch.
Then carry on installing as you wish. (i did: phpize && ./configure --with-ssh2 && make)
7. If all goes well at the end of ssh2 install it will tell you its created the ssh2.so module. Its in modules dir. Copy it to where all your other mnodules are, by default there at /usr/lib/php5/20060613+lfs/
8. Add: extension=ssh2.so to your php.ini file.
9. Restart apache /etc/init.d/apache2 restart
And thats it. Now all you need to do is create a php file interacting with ssh2.

Hope that helps!
Happy new year!
 
  


Reply


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
libssh2 not linking to PHP on Ubuntu 7.10 (Gutsy) jacorall Ubuntu 2 12-30-2007 10:32 AM
Problem installing module in Fedora Core 2 (2.6 kernel vs 2.4 problem?) Arodef Linux - Kernel 3 11-30-2007 02:55 PM
libssh2 ver. 0.18 RaduH Linux - General 2 11-29-2007 09:59 AM
Libssh2 version RaduH Linux - Software 3 11-15-2007 12:11 PM
Installing Red5 - Problem @ Installing fedora-rpmdevtools Aziz Linux - Software 2 11-04-2006 02:57 PM


All times are GMT -5. The time now is 12:57 AM.

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