Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: kagashe on December 18, 2008, 05:50:20 AM
-
It seems some libraries of Xorg being shifted to /usr/local/lib
This is causing problems.
Today I converted Xorg.tce into tcz While Xorg.tce can find the libraries in /usr/local/lib the converted Xorg.tcz can't.
I am getting the following error on startx
/usr/local/bin/Xorg: error while loading shared libraries: libpciaccess.so.0: cannot open shared object file: No such file or directory: error: could not open display
I can see the file in /usr/local/lib
I also tried making Xorg.tce after removing some drivers. The converted Xorg.tce is also giving same error.
kagashe
-
Is it named .tczl still (the L in the end)? Libraries in extensions need the "l" extension to be recognized.
-
Is it named .tczl still (the L in the end)? Libraries in extensions need the "l" extension to be recognized.
Just renamed it and it works.
Since .tcel and .tczl existed in the directory I omitted the "l" just to keep the original also in the same folder. Sorry for my ignorance.
I created another folder inside the optional and moved it giving .tcel and .tczl extension.
The trimmed Xorg is half the size of the original.
kagashe
-
Well,I my ignorance lingers on. I tried converting a tce extension that I built to tcz (intltool-0.40.5), and it still doesn't load. I built one a week ago, and that worked just fine. I'm using mkfs $TCZDIR program_name.tcz I tried renaming to tczl in case that helped, but it didn't. Of course, nothing ever works at the end of the day :( The tce extension works fine. Files get loaded into /usr/local/lib, /usr/local/bin, and a few help files into /usr/local/share/man.
-
This perhaps belongs in a new thread, but anyway...
The "l" in tce"l" or tcz"l" tells tce-load to issue a "ldconfig" command after loading to make sure any libs added by the extension in /usr/local/lib are made available to the system.
To check if there is a mistake somewhere, you could try this: $ mkdir /tmp/pkg
$ cp /path-to-file/intltool.tcel /tmp/pkg
$ cd /tmp/pkg
$ sudo tar xzf intltool.tcel
$ rm intltool.tcel
$ cd ..
$ tce-load /path-to-file/cramfs-utils.tce
$ sudo mkfs.cramfs pkg/ intltool.tczl
$ sudo chown tc:staff intltool.tczl
$ cp intltool.tczl /path-to-somewhere-safe
Then re-boot and see if intltool.tczl works
BTW intltool is in autotools.tce
-
Apparently, the problem was a corrupted .tar.gz file. Thanks....it seems to be working now.
john