I have MySQL server 5.0.67 running on a Linux machine.
How can I know what configure options were used to compile it??
I'm interested in the option --with-mysqld-ldflags in order to know whether mysql was linked statically or dynamically.
Thanks.
|
I have MySQL server 5.0.67 running on a Linux machine. I'm interested in the option --with-mysqld-ldflags in order to know whether mysql was linked statically or dynamically. Thanks.
| |||
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
You can see the configure options using the In your shell type The | |||
|
feedback
|
|
It won't get you exactly what you asked for, but you can check if a binary is statically linked or not (and if it is dynamically linked, what libraries it is linked against) with When the binary is dynamically linked, the output looks similar to this:
... and on a statically linked binary, like this:
| |||
|
feedback
|
|
Which version of Linux? The details will be in the source package. For Debian/Ubuntu based you can get the source package with | ||||
|
feedback
|
|
When I run ldd I get this:
root@hostname3 [~]# ldd /usr/sbin/mysqld
linux-gate.so.1 => (0x00139000)
librt.so.1 => /lib/librt.so.1 (0x00ba2000)
libdl.so.2 => /lib/libdl.so.2 (0x00ae3000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00b12000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00bad000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00be1000)
libm.so.6 => /lib/libm.so.6 (0x00ae9000)
libc.so.6 => /lib/libc.so.6 (0x0099d000)
/lib/ld-linux.so.2 (0x0097f000)
Does it mean mysqld is statically linked?? | |||||||
feedback
|