LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-12-2006, 11:26 AM   #1
qbqb_ct
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
Lightbulb Help needed to install PHP 5.1.4 on Fedora Core 4


I have recently upgraded my Linux machine from Red Hat to Fedore Core 4. The PHP version on the machine is 5.0.4. I would now like to start using the gd2 libraries in PHP. I found the php.ini file in /etc and PHPInfo() also indicates that this is the file that PHP loads. The ini file indicates extension_dir = "/usr/lib/php/modules" but I can only find ldap, mysql, mysqli and odbc .so files in the modules directory. I obviously need a files called gd2.so in the same directory. So I thought I would download PHP 5.1.4 and follow the instructions to install. Maybe that will give my gd2 support. Downloaded php-5.1.4.tar.gz and extracted it. Found the configure command (rather HUGE) and started it.

This is what I see:
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
./configure: line 6335: /usr/sbin/apxs: No such file or directory
configure: error: Aborting

Now I am stuck. I do not know what APXS is and I have no idea what to do next. And no, I am not a whizz at Linux at all.

Any help woudld be appreciated.

Thanks,
Philip
 
Old 06-13-2006, 01:49 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
It has been my experience that the only safe way to add, change or update software on your system is through the use of RPMs. If I want to add software that is available only in .tar.gz format, then, running as a regular user (i.e. not root), I would want to build an RPM out of that first (something that I have yet to thrash out and documentation on how to do this is not clear at all) and then install the RPM on my system.

To install and manage RPMs, you need a GUI that shows everything about your RPMs, such as dependencies, conflicts, etc., at a glance. If you don't already have it, I would recommend smart-0.41-2.2.fc4.i386.rpm and smart-gui-0.41-2.2.fc4.i386.rpm. Download these RPMs and use "rpm -i <filename>" to install them. Once you have them installed, you should then be able to see what it takes to install php 5.1.4 on your system.
 
Old 07-01-2006, 11:25 AM   #3
qbqb_ct
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
I'm smart with SMART!

Hi xode,

Thanks for the help. I downloaded the two smart RPMs as well as an update for it. I then ran it, and what a pleasure. MySQL is now updated, not quite to the level I wanted since smart only shows up to 4.1.20-1.FC4. I am now downloading the latest PHP rpms for installation.

Thanks again,
qbqb_ct
 
Old 09-01-2006, 06:08 AM   #4
stephenb
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
i've successfully installed fedora 4 & 5 with apache, php5 and mysql all from source packages if u still want help?
 
Old 09-04-2006, 01:17 AM   #5
qbqb_ct
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Cool Upgraded OS to FC5

Hi all,

Thanks for all the suggestions and help. I have now upgraded the OS to FC5. PHP and MySQL are now also upgraded to the latest levels and it seems as if all the problems with collation and char sets are fixed.

Regards,
Philip
 
  


Reply



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
fedora core 4 + apache + php - how install gd2 support? rehtorisi Fedora 3 08-23-2005 11:32 AM
WPC54g, Fedora Core 3, WPA, help needed IwritePatents Linux - Wireless Networking 8 02-24-2005 11:13 AM
Help needed for installing mplayer on Fedora Core 2 linuxnoob223 Fedora 13 09-09-2004 01:12 AM
Fedora Core ISO Images needed for install LinuxOnEarth Fedora - Installation 6 07-15-2004 07:21 AM
Fedora Core 2 Help Needed 74039186 Fedora 14 07-10-2004 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration