WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Xorg.tcz libpciaccess.so.0 No such file or directory.  (Read 7757 times)

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
[SOLVED] Xorg.tcz libpciaccess.so.0 No such file or directory.
« 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
« Last Edit: December 18, 2008, 08:32:09 AM by kagashe »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Xorg.tcz libpciaccess.so.0 No such file or directory.
« Reply #1 on: December 18, 2008, 08:13:52 AM »
Is it named .tczl still (the L in the end)? Libraries in extensions need the "l" extension to be recognized.
The only barriers that can stop you are the ones you create yourself.

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: Xorg.tcz libpciaccess.so.0 No such file or directory.
« Reply #2 on: December 18, 2008, 08:31:36 AM »
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

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: [SOLVED] Xorg.tcz libpciaccess.so.0 No such file or directory.
« Reply #3 on: January 21, 2009, 01:10:31 AM »
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. 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: [SOLVED] Xorg.tcz libpciaccess.so.0 No such file or directory.
« Reply #4 on: January 21, 2009, 03:08:09 AM »
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:
Quote
$ 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
« Last Edit: January 21, 2009, 03:11:36 AM by Juanito »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: [SOLVED] Xorg.tcz libpciaccess.so.0 No such file or directory.
« Reply #5 on: January 21, 2009, 12:08:24 PM »
Apparently, the problem was a corrupted .tar.gz file.  Thanks....it seems to be working now.

john