LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-05-2002, 08:53 PM   #1
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Rep: Reputation: 15
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.
 
Old 08-05-2002, 09:00 PM   #2
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Hmm I found a mysql.so file for 3.23.51 the other day, I could give it to you
 
Old 08-05-2002, 09:15 PM   #3
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
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?
 
Old 08-05-2002, 09:47 PM   #4
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Well 1 sec ill upload the mysql.so i found
 
Old 08-05-2002, 09:49 PM   #5
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
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
 
Old 08-05-2002, 09:50 PM   #6
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
btw i didnt make that rpm
 
Old 08-05-2002, 09:54 PM   #7
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
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
 
Old 08-05-2002, 10:01 PM   #8
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
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.
 
Old 08-05-2002, 10:38 PM   #9
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
Lightbulb

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).
 
Old 08-06-2002, 12:47 AM   #10
ifm
Member
 
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124

Original Poster
Rep: Reputation: 15
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.
 
Old 08-06-2002, 06:19 AM   #11
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
hehe
using the old php-mysql rpms prolly still work with MySQL 3.23.51
 
Old 08-06-2002, 06:19 AM   #12
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
mysql.so was made by redhat, compiling php doesnt generate it
 
  


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
mkdir ../binutils-build gives me "Permission Denied"!!! matthewa Linux From Scratch 16 06-29-2005 08:00 AM
C -communicating with system("ftp"); using "program|ftp>>myfifo" probably hansschmucker Programming 1 03-23-2005 02:39 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 12:45 PM
/lib/modules/2.4.20-6/ contains an entry called "build" which is highlighted in red - Simon Bridge Linux - Software 1 01-24-2004 10:46 PM
Pre-Build Executable "No Such File or Directory" problem Archeress Linux - General 2 08-17-2002 09:26 PM


All times are GMT -5. The time now is 09:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration