LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-14-2006, 01:16 AM   #1
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Rep: Reputation: 16
Installing php package after installing from source


I previously had installed php 4.3.4 from source. Now I want to install php 4.4.2 using the slackware package. I installed the package, but when I type php -v, it still says it is using 4.3.4.

1. how to I remove the php that I installed from source? There are several threads on here asking about it, but no one has been able to give the correct way to uninstall. make uninstall doesnt work, and I can't find anything on the php website.

2. How to I get slackware to use the package installed version instead of the source installed version?
When I try to start apache, it says:

Syntax error on line 6 of /etc/apache/mod_php.conf:
Cannot load /usr/libexec/apache/libphp4.so into server: libmhash.so.2: cannot open shared object file: No such file or directory

But, the file exists...

ls /usr/libexec/apache/
total 4240
drwxr-xr-x 2 root root 4096 Feb 14 13:01 .
drwxr-xr-x 7 root root 4096 Feb 14 13:00 ..
-rwxr-xr-x 1 root root 4320112 Feb 14 13:01 libphp4.so
 
Old 03-14-2006, 01:41 AM   #2
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
For uninstalling maybe you could try this:
Get 4.3.4, compile and make slackware package. Uninstall 4.4.2, install 4.3.4, uninstall 4.3.4 (at this point no file of 4.3.4 should be left), then install 4.4.2
Talking about libmhash, check if this file exists in original 4.4.2 package.
 
Old 03-14-2006, 05:01 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,549

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
if you haven't remove your PHP source directory, try running make uninstall, but i don't guarrantee this will works, since i have never tried this before, since i always sticks to source code packages because i need different modules which Pat has compile for the PHP packages in Slackware
 
Old 03-14-2006, 05:22 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
He said that make uninstall doesn't work.
 
Old 03-14-2006, 10:19 AM   #5
shubb
Member
 
Registered: Oct 2003
Location: San Francisco
Distribution: Slackware 13.37
Posts: 150

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Alien_Hominid
Get 4.3.4, compile and make slackware package. Uninstall 4.4.2, install 4.3.4, uninstall 4.3.4 (at this point no file of 4.3.4 should be left), then install 4.4.2
What do you mean by compile and make slackware package? Is this different than making from source? Or do you mean install the 4.3.4 slackware package?

It appears to me that the files installed by the source install are different than the ones installed by the package, probably because Pat uses a different install directory than the standard source install.
 
  


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
Debian: Problem installing 'Source RPM package' driver for winmodem Steerpike_jhb Linux - Newbie 8 03-17-2005 03:33 AM
Problems installing Apache/PHP from source minorgod Mandriva 0 09-11-2004 07:45 PM
Installing PHP from source on RedHat 9 with Apache -- few questions? Bungo2000 Linux - Software 1 06-05-2003 03:41 PM
problem installing kernel source package ludwig W Linux - General 7 03-23-2003 06:36 PM
problem installing kernel source package ludwig W Linux - Newbie 1 03-23-2003 08:18 AM


All times are GMT -5. The time now is 03:21 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