Re: [opendbx] Problems generating .deb
Brought to you by:
nose
From: Mariano M. P. <mar...@gm...> - 2008-02-03 17:29:05
|
Hi Norbert On Feb 3, 2008 9:28 AM, Norbert Sendetzky <no...@li...> wrote: > Hi Mariano > > > Sorry. You are right. The problem is that when i compile and install > > openDBX, it put some files in some places, but when i install it from > deb > > it put them in other place. > > Yes, that's true but not limited to the OpenDBX package. If you do > a ./configure without --prefix on a .tar.gz package which uses automake as > build tool, it wil always install the files to /usr/local/. This conforms > to > the filesystem hierarchy standard and don't mess up the rest of the > system. > > Installing the distribution specific package is different because it's > usually > not self-compiled and must work not only on the machine where it was built > but also on all others. Therefore the files are installed in /usr/ and are > then available for all applications. > Good explanation! thanks. > > > Ok. Perfect. I installed that package and i now have the odbx so that to > > compile applications who use opendDBX. Just by curious, how can i use > > openDBX without a application? i mean, supose i don't have any > application > > who uses, can i use openDBX? How? using those scripts? Would you mine > > giving me some example? > > I don't understand your question. OpenDBX is only a shared library which > can't > be used on it's own. You need at least some sort of application or a > script > in a scripting language which can provide access to the library functions > to > make the library do something useful. > > > *_odbx_lib_open(): Loading backend library failed: > > /usr/local/lib/opendbx/libpgsqlbackend.so - > > /usr/local/lib/opendbx/libpgsqlbackend.so: cannot open shared object > file: > > No such file or directory > > > > The same happends if i run the test you put in project (odbxtest.sh). I > > have get it work if a generate a symbolic link. But it don't know why > the > > linker is looking in */usr/local/lib/ *and not in /usr/lib. Where i can > > tell it where to search them? i put this in the makefile. The makefile > of > > my test is like this: > > You installed the files manually using "make install" and also installed > the > packages. Now the linker uses the wrong library file. Please remove all > packages (apt-get remove libopendbx1), go the the directory where you did > the "./configure", "make" and "make install" and do a "make uninstall". If > you don't have this directory any more, unpack the .tar.gz package again, > start the "./configure" script with the same options you used before and > do > a "make install". Then do a "make uninstall", remove the > line "/usr/local/lib" from /etc/ld.so.conf an run ldconfig. Check if > the /usr/local/lib and /usr/lib/ directories doesn't contain any OpenDBX > files. At the end install the .deb package files again. > Yes, its true. I had manually installed the packages before installing .deb. So i did what you tell me. I check the /usr/local/lib and /usr/lib/ directories doesn't contain any OpenDBX and i finally installed the .deb packages. The result is the same: MY application, i mean, the test I do to use openDBX looks at /usr/local/lib instead of /usr/lib. And obiously, it doesn't find the files. The only extrange thing is that my /etc/ld.so.conf looks like this: include /etc/ld.so.conf.d/*.conf Thats all the file. And if i see /etc/ld.so.conf.d i can't find it. It doesn't exist. Thanks, Mariano > > > LDFLAGS = -L/usr/lib -L/usr/lib/opendbx -L/usr/lib/pkgconfig > > You don't need this line. /usr/lib is automatically used and the rest > isn't > necessary. > > > Norbert > -- > OpenPGP public key > http://www.linuxnetworks.de/norbert.pubkey.asc > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > libopendbx-devel mailing list > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libopendbx-devel > http://www.linuxnetworks.de/doc/index.php/OpenDBX > > |