Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.