php-devel

ItsOnlyMe

Verified User
Joined
Apr 3, 2009
Messages
126
Location
Netherlands
heey,,

i cant install php-devel on my CentOS5 64Bitt server

rly strange

can anyone help me with this ?

greetz
 
Why would you expect to?

it says:

[root@server1 ~]# yum install php-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* rpmforge: ftp-stud.fht-esslingen.de
* extras: ftp.nluug.nl
* updates: ftp.nluug.nl
* base: ftp.nluug.nl
* addons: ftp.nluug.nl
dag | 1.1 kB 00:00
rpmforge | 1.1 kB 00:00
extras | 1.1 kB 00:00
updates | 951 B 00:00
base | 1.1 kB 00:00
addons | 951 B 00:00
Excluding Packages in global exclude list
Finished
Reducing Dag ClamAV RPM to included packages only
Finished
Setting up Install Process
Parsing package install arguments
No package php-devel available.
Nothing to do
[root@server1 ~]#



And this is my phpinfo CLICK ME

and i need ssh2.so so take a look here Click Me

the command phpize doest work either
 
You don't want yum to install any php- anything. It will break your server. DA servers install php from source.
 
You don't want yum to install any php- anything. It will break your server. DA servers install php from source.

Yeah but i get this error now

[root@server1 ~]# /usr/local/php5/bin/pecl install ssh2-beta --with-php-config=/usr/local/php5/bin
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
Attempting to discover channel "--with-php-config=/usr/local/php5"...
unknown channel "--with-php-config=/usr/local/php5" in "--with-php-config=/usr/local/php5/bin"
invalid package name/package file "--with-php-config=/usr/local/php5/bin"
Cannot initialize '--with-php-config=/usr/local/php5/bin', invalid or missing package file
downloading ssh2-0.11.0.tgz ...
Starting to download ssh2-0.11.0.tgz (22,884 bytes)
........done: 22,884 bytes
Package "--with-php-config=/usr/local/php5/bin" is not valid
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. libssh2 prefix? : /usr

1-1, 'all', 'abort', or Enter to continue: all
libssh2 prefix? [/usr] :
1. libssh2 prefix? : /usr

1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-root/ssh2-0.11.0
running: /tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
ERROR: `/tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr' failed



How can i fix i need to prefix my libssh if i do locate libssh i get this list:

what should i do ?

[root@server1 ~]# locate libssh2
/usr/lib64/libssh2.so.1
/usr/lib64/libssh2.so.1.0.0
/usr/local/apache2/php/modules/libssh2.so
/usr/local/apache2/php/modules/modules/libssh2.so
/usr/local/include/libssh2.h
/usr/local/include/libssh2_publickey.h
/usr/local/include/libssh2_sftp.h
/usr/local/lib/libssh2.a
/usr/local/lib/libssh2.la
/usr/local/lib/libssh2.so
/usr/local/lib/libssh2.so.1
/usr/local/lib/libssh2.so.1.0.0
/usr/local/lib/libssh2.so.1.0.1
/usr/local/share/man/man3/libssh2_banner_set.3
/usr/local/share/man/man3/libssh2_base64_decode.3
/usr/local/share/man/man3/libssh2_channel_close.3
/usr/local/share/man/man3/libssh2_channel_direct_tcpip_ex.3
/usr/local/share/man/man3/libssh2_channel_eof.3
/usr/local/share/man/man3/libssh2_channel_flush_ex.3
/usr/local/share/man/man3/libssh2_channel_forward_accept.3
/usr/local/share/man/man3/libssh2_channel_forward_cancel.3
/usr/local/share/man/man3/libssh2_channel_forward_listen_ex.3
/usr/local/share/man/man3/libssh2_channel_free.3
/usr/local/share/man/man3/libssh2_channel_get_exit_status.3
/usr/local/share/man/man3/libssh2_channel_handle_extended_data.3
/usr/local/share/man/man3/libssh2_channel_handle_extended_data2.3
/usr/local/share/man/man3/libssh2_channel_open_ex.3
/usr/local/share/man/man3/libssh2_channel_process_startup.3
/usr/local/share/man/man3/libssh2_channel_read_ex.3
/usr/local/share/man/man3/libssh2_channel_receive_window_adjust.3
/usr/local/share/man/man3/libssh2_channel_receive_window_adjust2.3
/usr/local/share/man/man3/libssh2_channel_request_pty_ex.3
/usr/local/share/man/man3/libssh2_channel_send_eof.3
/usr/local/share/man/man3/libssh2_channel_set_blocking.3
/usr/local/share/man/man3/libssh2_channel_setenv_ex.3
/usr/local/share/man/man3/libssh2_channel_wait_closed.3
/usr/local/share/man/man3/libssh2_channel_wait_eof.3
/usr/local/share/man/man3/libssh2_channel_window_read_ex.3
/usr/local/share/man/man3/libssh2_channel_window_write_ex.3
/usr/local/share/man/man3/libssh2_channel_write_ex.3
/usr/local/share/man/man3/libssh2_channel_x11_req_ex.3
/usr/local/share/man/man3/libssh2_hostkey_hash.3
/usr/local/share/man/man3/libssh2_poll.3
/usr/local/share/man/man3/libssh2_poll_channel_read.3
/usr/local/share/man/man3/libssh2_scp_recv.3
/usr/local/share/man/man3/libssh2_scp_send_ex.3
/usr/local/share/man/man3/libssh2_session_abstract.3
/usr/local/share/man/man3/libssh2_session_block_directions.3
/usr/local/share/man/man3/libssh2_session_callback_set.3
/usr/local/share/man/man3/libssh2_session_disconnect_ex.3
/usr/local/share/man/man3/libssh2_session_free.3
/usr/local/share/man/man3/libssh2_session_init.3
/usr/local/share/man/man3/libssh2_session_init_ex.3
/usr/local/share/man/man3/libssh2_session_last_errno.3
/usr/local/share/man/man3/libssh2_session_last_error.3
/usr/local/share/man/man3/libssh2_session_method_pref.3
/usr/local/share/man/man3/libssh2_session_methods.3
/usr/local/share/man/man3/libssh2_session_set_blocking.3
/usr/local/share/man/man3/libssh2_session_startup.3
/usr/local/share/man/man3/libssh2_sftp_close_handle.3
/usr/local/share/man/man3/libssh2_sftp_fstat_ex.3
/usr/local/share/man/man3/libssh2_sftp_init.3
/usr/local/share/man/man3/libssh2_sftp_last_error.3
/usr/local/share/man/man3/libssh2_sftp_mkdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_open_ex.3
/usr/local/share/man/man3/libssh2_sftp_read.3
/usr/local/share/man/man3/libssh2_sftp_readdir.3
/usr/local/share/man/man3/libssh2_sftp_readdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_rename_ex.3
/usr/local/share/man/man3/libssh2_sftp_rmdir_ex.3
/usr/local/share/man/man3/libssh2_sftp_seek.3
/usr/local/share/man/man3/libssh2_sftp_shutdown.3
/usr/local/share/man/man3/libssh2_sftp_stat_ex.3
/usr/local/share/man/man3/libssh2_sftp_symlink_ex.3
/usr/local/share/man/man3/libssh2_sftp_tell.3
/usr/local/share/man/man3/libssh2_sftp_tell64.3
/usr/local/share/man/man3/libssh2_sftp_unlink_ex.3
/usr/local/share/man/man3/libssh2_sftp_write.3
/usr/local/share/man/man3/libssh2_trace.3
/usr/local/share/man/man3/libssh2_userauth_authenticated.3
/usr/local/share/man/man3/libssh2_userauth_keyboard_interactive_ex.3
/usr/local/share/man/man3/libssh2_userauth_list.3
/usr/local/share/man/man3/libssh2_userauth_password_ex.3
/usr/local/share/man/man3/libssh2_userauth_publickey_fromfile.3
/usr/local/share/man/man3/libssh2_userauth_publickey_fromfile_ex.3
/usr/local/share/man/man3/libssh2_version.3
/usr/share/doc/libssh2-0.17
/usr/share/doc/libssh2-0.17/AUTHORS
/usr/share/doc/libssh2-0.17/COPYING
/usr/share/doc/libssh2-0.17/ChangeLog
/usr/share/doc/libssh2-0.17/HACKING
/usr/share/doc/libssh2-0.17/NEWS
/usr/share/doc/libssh2-0.17/README


grtz
 
type which php-config and add the path in your install command :
/usr/local/php5/bin/pecl install ssh2-beta --with-php-config="the result of which php-config"
 
okay

but

[root@server1 ssh2-0.11.0]# /usr/local/php5/bin/pecl install ssh2-beta --with-ph p-config="/usr/local/php5/bin/php-config"
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p ear.php.net" to update
Attempting to discover channel "--with-php-config=/usr/local/php5/bin"...
unknown channel "--with-php-config=/usr/local/php5/bin" in "--with-php-config=/u sr/local/php5/bin/php-config"
invalid package name/package file "--with-php-config=/usr/local/php5/bin/php-con fig"
Cannot initialize '--with-php-config=/usr/local/php5/bin/php-config', invalid or missing package file
downloading ssh2-0.11.0.tgz ...
Starting to download ssh2-0.11.0.tgz (22,884 bytes)
........done: 22,884 bytes
Package "--with-php-config=/usr/local/php5/bin/php-config" is not valid
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. libssh2 prefix? : /usr

1-1, 'all', 'abort', or Enter to continue:


What to do there ? as prefix?
 
Worked for me.

Code:
yum install libssh2-devel

Code:
pecl install ssh2-beta
 
Worked for me.

Code:
yum install libssh2-devel

Code:
pecl install ssh2-beta


I did the install libssh2-devel that worked

then the pecl command did it .. THen it still askes for the prefix of libssh2 what is that i did /usr/local/lib

[root@server1 ~]# /usr/local/php5/bin/pecl install ssh2-beta
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading ssh2-0.11.0.tgz ...
Starting to download ssh2-0.11.0.tgz (22,884 bytes)
........done: 22,884 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. libssh2 prefix? : /usr

1-1, 'all', 'abort', or Enter to continue: all
libssh2 prefix? [/usr] : /usr/local/lib/
1. libssh2 prefix? : /usr/local/lib/

1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-root/ssh2-0.11.0
running: /tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr/local/lib/
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for icc... no
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH
ERROR: `/tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr/local/lib/' failed
[root@server1 ~]#


Still the error of configure...
 
You should not have to enter a prefix. The default /usr worked for me.
 
Nope doesnt work

configure: error: Cannot find php-config. Please use --with-php-config=PATH
ERROR: `/tmp/pear/download/ssh2-0.11.0/configure --with-ssh2=/usr' failed
[root@server1 ~]#
 
Back
Top