LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   meaning of "shared" in ./configure... (https://www.linuxquestions.org/questions/linux-newbie-8/meaning-of-shared-in-configure-85115/)

tuka 08-24-2003 06:39 AM

meaning of "shared" in ./configure...
 
Hi all,

I am studying out the comand for PHP module compilation but due to a lack of man pages in my PC for this comand I canīt sort it out...

What does "shared" in:

./configure '--with-mysql=shared,/usr'

mean ? Could you explain the command parametyer as a whole ?Is this something specific to this command or is it something generic to Linux I should know ?

Thank for your help...
Tuka

acid_kewpie 08-24-2003 07:11 AM

it means shared as opposed to static... so rather than taking the code in the libraries and including it in the binaries you're about to compile, it will leave it in the original library, preusmably in /usr/lib or such like, meaning that it will depend on those external files each time it runs, and thus is sharing the code with other applciations which also use that library, this is more normal, and i would have thought shared would be the default anyway, static compiles will produce larger files (and replicate code on your system) but does have it's benefits, like being more portable when using unusal libraries....

tuka 08-24-2003 08:51 PM

hmmm... I see

that would mean that the PHP is trying to use a shared library in the /usr directory...

I have another question: My problem is that PHP is not accessing the mysql libraries. Do you know how I may figure out where the mysql libraries (ie. the expected filename(s)) are and how I may link the library from wherever it is installed on my system ? that way I may use my PHP instalation (default for RH9) without having to recompile.....

Thanks again...

Tuka


All times are GMT -5. The time now is 08:29 PM.