Hi,
First, I have installed libzdb with full package (MySQL, PostgreSQL, SQLite and Oracle) on default Prefix. Then I install again with ./configure --without-postgresql --without-sqlite --without-oci --prefix=/project/libzdb-mysql Cause I only want to use the mysql package only, but after I compile my program and use the library on /project/libzdb-mysql why it still use libclntsh.so.11.1, libsqlite3.so.0, libnnz11.so (the library for oracle and sqllite), how to remove it?
Please help me, I have to upload my program on my server without PostgreSQL, SQLite and Oracle package.
Thanks
On 06/25/2012 09:25 AM, Hans Richardo wrote:
Hi,
First, I have installed libzdb with full package (MySQL, PostgreSQL, SQLite and Oracle) on default Prefix.
Maybe a dumb question, but why? Why install postgresql, sqlite and oracle if you really don't need them?
Because I want to try this library for mysql and oracle on my local RHEL, but I don't use it on my server. I only need the mysql on my server, but I only can compile my program on my local RHEL which has full package.
How to resolve it?
Thanks
________________________________
On 06/25/2012 09:25 AM, Hans Richardo wrote:
Hi,
First, I have installed libzdb with full package (MySQL, PostgreSQL, SQLite and Oracle) on default Prefix.
Maybe a dumb question, but why? Why install postgresql, sqlite and oracle if you really don't need them?
Hi,
Try to reconfigure it, at this time try to not use --without option, just define exactly you need (I'm too far from my home PC, so pls check configure --help to correct syntax) check : --with-mysql=yes Good luck, Volodymyr!
________________________________ From: Hans Richardo qrx_1088@yahoo.com To: Paul J Stevens paul@nfg.nl; This is the libzdb general mailing list libzdb-general@tildeslash.com Sent: Monday, June 25, 2012 12:57 PM Subject: Bls: Lizdb Only Mysql Package
Because I want to try this library for mysql and oracle on my local RHEL, but I don't use it on my server. I only need the mysql on my server, but I only can compile my program on my local RHEL which has full package.
How to resolve it?
Thanks
________________________________
On 06/25/2012 09:25 AM, Hans Richardo wrote:
Hi,
First, I have installed libzdb with full package (MySQL, PostgreSQL, SQLite and Oracle) on default Prefix.
Maybe a dumb question, but why? Why install postgresql, sqlite and oracle if you really don't need them?
I have to tried reconfigure it again, using
./configure --with-mysql=yes --prefix=/project/libzdb-mysql Result :
| SQLite3: ENABLED | | MySQL: DISABLED | | PostgreSQL: DISABLED | | Oracle: ENABLED | The mysql become disabled?
./configure --with-postgresql=no --with-sqlite=no --with-oci=no --with-oci-include=no --with-oci-lib=no --prefix=/project/libzdb-mysql Result : | SQLite3: DISABLED | | MySQL: ENABLED | | PostgreSQL: DISABLED | | Oracle: DISABLED | It seems the configuration is correct, but after I compile my program which use this library, it still request libclntsh.so.11.1, libsqlite3.so.0, libnnz11.so (the library for oracle and sqllite)
Is there a bug on "make" libzdb installation or I miss something?
Thanks
________________________________ Dari: Volodymyr Tarasenko tvntsr@yahoo.com Kepada: Hans Richardo qrx_1088@yahoo.com; Paul J Stevens paul@nfg.nl; This is the libzdb general mailing list libzdb-general@tildeslash.com; This is the libzdb general mailing list libzdb-general@tildeslash.com Dikirim: Senin, 25 Juni 2012 17:09 Judul: Re: Bls: Lizdb Only Mysql Package
Hi,
Try to reconfigure it, at this time try to not use --without option, just define exactly you need (I'm too far from my home PC, so pls check configure --help to correct syntax) check : --with-mysql=yes Good luck, Volodymyr!
________________________________ From: Hans Richardo qrx_1088@yahoo.com To: Paul J Stevens paul@nfg.nl; This is the libzdb general mailing list libzdb-general@tildeslash.com Sent: Monday, June 25, 2012 12:57 PM Subject: Bls: Lizdb Only Mysql Package
Because I want to try this library for mysql and oracle on my local RHEL, but I don't use it on my server. I only need the mysql on my server, but I only can compile my program on my local RHEL which has full package.
How to resolve it?
Thanks
________________________________
On 06/25/2012 09:25 AM, Hans Richardo wrote:
Hi,
First, I have installed libzdb with full package (MySQL, PostgreSQL, SQLite and
Oracle) on default Prefix.
Maybe a dumb question, but why? Why install postgresql, sqlite and oracle if you really don't need them?
On 06/26/2012 05:51 AM, Hans Richardo wrote:
./configure --with-postgresql=no --with-sqlite=no --with-oci=no --with-oci-include=no --with-oci-lib=no --prefix=/project/libzdb-mysql Result : | SQLite3: DISABLED | | MySQL: ENABLED | | PostgreSQL: DISABLED | | Oracle: DISABLED | It seems the configuration is correct, but after I compile my program which use this library, it still request libclntsh.so.11.1, libsqlite3.so.0, libnnz11.so (the library for oracle and sqllite)
Is there a bug on "make" libzdb installation or I miss something?
Just did a quick test for this against the current svn-trunk.
I don't have oracle libs so I can't test that:
./bootstrap ./configure --with-postgresql=no --with-mysql=no --prefix=/usr make ldd .libs/libzdb.so.8.0.2
linux-vdso.so.1 => (0x00007fffcf1ff000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f9d0a637000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9d0a41a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9d0a05c000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9d09e58000) /lib64/ld-linux-x86-64.so.2 (0x00007f9d0ab0b000)
which looks clean to me.
Checking configure.ac for oracle flags I notice an external macro: AX_LIB_ORACLE_OCI
http://www.gnu.org/software/autoconf-archive/ax_lib_oracle_oci.html
Which leads me to suspect you should just use --with-oci=no and leave out the other oci options.
maybe that helps.
[Solve]
Thanks Paul, I have solved this problem after reads your step that inspired me.
The following are the steps that I did : 1.) I remove the libzdb-2.10.4 folder and re-extract the libzdb-2.10.4.tar. 2.) I go into the extract result and configure the installation like this
./configure --with-postgresql=no --with-sqlite=no --with-oci=no --with-oci-include=no --with-oci-lib=no --prefix=/project/libzdb-mysql make make install 3.) Finish ldd /project/libzdb-mysql/lib/libzdb.so.8
linux-gate.so.1 => (0x006cf000) libnsl.so.1 => /lib/libnsl.so.1 (0x00f89000) libm.so.6 => /lib/libm.so.6 (0x004e0000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x007c1000) libpthread.so.0 => /lib/libpthread.so.0 (0x00261000) libc.so.6 => /lib/libc.so.6 (0x008e7000) /lib/ld-linux.so.2 (0x00658000)
________________________________ On 06/26/2012 05:51 AM, Hans Richardo wrote:
./configure --with-postgresql=no --with-sqlite=no --with-oci=no --with-oci-include=no --with-oci-lib=no --prefix=/project/libzdb-mysql Result : | SQLite3: DISABLED | | MySQL: ENABLED | | PostgreSQL: DISABLED | | Oracle: DISABLED | It seems the configuration is correct, but after I compile my program which use this library, it still request libclntsh.so.11.1, libsqlite3.so.0, libnnz11.so (the library for oracle and sqllite)
Is there a bug on "make" libzdb installation or I miss something?
Just did a quick test for this against the current svn-trunk.
I don't have oracle libs so I can't test that:
./bootstrap ./configure --with-postgresql=no --with-mysql=no --prefix=/usr make ldd .libs/libzdb.so.8.0.2
linux-vdso.so.1 => (0x00007fffcf1ff000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f9d0a637000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9d0a41a000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9d0a05c000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9d09e58000) /lib64/ld-linux-x86-64.so.2 (0x00007f9d0ab0b000)
which looks clean to me.
Checking configure.ac for oracle flags I notice an external macro: AX_LIB_ORACLE_OCI
http://www.gnu.org/software/autoconf-archive/ax_lib_oracle_oci.html
Which leads me to suspect you should just use --with-oci=no and leave out the other oci options.
maybe that helps.