LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Build just a ".so" for program? (https://www.linuxquestions.org/questions/linux-software-2/build-just-a-so-for-program-27278/)

ifm 08-05-2002 07:53 PM

Build just a ".so" for program?
 
I know I could ask this in a PHP or MYSQL forum, however I already have, and no one answers... so I thought I would try here amongst linux gurus as its a fairly general question/issue.

I have php 4.1.2 already installed. Its ok. I already have MySQL 4.23.49 installed and ITS ok too. Problem is, I need to install all the mysql items for 4.23.51, and I dont want to reinstall PHP because it might break ;-)

I just want to rebuild the "mysql.so" file that php uses in its library loadables directory.

How would I go about JUST building the new "mysql.so" file for php without touching the current php installation?

Simple question... I bet its not a simple answer though :(

Any help would be nice, thanks.

rverlander 08-05-2002 08:00 PM

Hmm I found a mysql.so file for 3.23.51 the other day, I could give it to you

ifm 08-05-2002 08:15 PM

I tried downloading the latest I could find of the php-mysql.rpm file, and it had the exact same file that is currently installed on my server.

Maybe I dont need to update that mysql.so file if I am going from mysql .49 to .51 ?

If not, then well, do you have a link to where that file is you found?

rverlander 08-05-2002 08:47 PM

Well 1 sec ill upload the mysql.so i found

rverlander 08-05-2002 08:49 PM

As im too lazy to extract a mysql.so outa sum1 else rpm, then heres a php-mysql rpm for 3.23.51 I found: http://rpms.arvin.dk/php/rh62/i586/o...rh6.2.i586.rpm
remember u must do rpm -i php-mysql-4.1.2-9.arvin.rh6.2.i586.rpm --nodeps and rpm -e php-mysql before that

rverlander 08-05-2002 08:50 PM

btw i didnt make that rpm

ifm 08-05-2002 08:54 PM

Right...

I'm just scared cause its for RH 6.2, and something called "arvin". I use RH7.3, on an i686.

I wish I knew for sure, it really didnt matter ;-)

Because either I attempt this mysql.so file, or I attempt reinstalling PHP 4.1.2 from source code, and hope I get the entire config string the same as the prior PHP 4.1.2 install was, so nothing breaks.

Crazy. Thanks for the link though ... I'm just unsure if I should attempt it. I havnt installed the mysql yet, as I am waiting till I find a path of destruction for php afterwards ;)

ifm 08-05-2002 09:01 PM

Well, I temp moved the current .so file out of the way and attempted to install the rpm. Wouldn't work ... gives the general error of :

error: failed dependencies:
mod_php-OR-php-standalone = 4.1.2 is needed by php-mysql-4.1.2-9.arvin.rh6.2


So, guess that won't rightly work right if thats the type of PHP its looking for eek.

I'm just scared :(

See, I have this YDL2.1 box, where I tried to install its PHP from source tarball, using the EXACT same PHP ./configure line that is displayed in the phpinfo() information... and ran into a serious headache and reconfiguration, and hack-n-slash to make it all work. Finally did, but it ended up nowhere near what it was ;)

Kinda skeptical now about that "php configure line" information in phpinfo().

AAAAA...

Ah well. Thanks anyhow! I will figure this out, maybe crawl out of my shell and show some guts and break everything in the process, heh.

ifm 08-05-2002 09:38 PM

I think I found out what I can do.

All I need is the compiled "modules/mysql.so"...

I can download the src tarball for php 4.1.2, stuff it in a working directory, do all the ./configure I need, then do a "make" only. This will make all the stuff. I can then just drag out (uh, cp), the mysql.so file out of the package directory into the proper location, and ... theoretically, BAM IT SHOULD JUST WORK!

Course, I have to install the new MySQL first so the ./configure finds the mysql libraries and stuff first.

Thats my plan anyhow... =)

Otherwise, I found out I would have to recompile the source for IMAP, CURL, LDAP, etc etc etc etc so that PHP 4.1.2 will configure right with all the support for thos things we need! GAH! (system rpm installs can be a pain sometimes).

ifm 08-05-2002 11:47 PM

Well, that idea might work if I could get this damned RPM to install. Complains about dependancies of the old mysql 3.23.49 rpm that is installed, and no matter of "--force" makes it do anything else. I cant very well -e (erase) all the other packages that are dependant on 3.23.49!

God I so hate rpms.

I need to go shoot someone.

rverlander 08-06-2002 05:19 AM

hehe
using the old php-mysql rpms prolly still work with MySQL 3.23.51

rverlander 08-06-2002 05:19 AM

mysql.so was made by redhat, compiling php doesnt generate it


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