Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-08-2006, 08:36 AM   #1
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Rep: Reputation: 16
ls -la Segmentation Fault

Here's the situation:
I want to list the contents of a directory full of shared libraries.
When I type 'ls -la' I either get:
[root@host lib]# ls -la
Segmentation fault
[root@host lib]# ls -la
ls: error while loading shared libraries: ./ ELF file data encoding not little-endian
What's wrong with it? The shared libraries are for a PowerPCa and my host is x86...
And the file is somewhere at the end of the listing (I checked it with Konqueror). There ~60 shared llibraries in that directory...
Does the 'ls' command tries to load the libraries???

Old 05-08-2006, 10:13 AM   #2
Registered: Dec 2004
Distribution: gentoo
Posts: 190

Rep: Reputation: 30
You mave hav LD_LIBRARY_PATH="." set.

Instead of trying to list the contents of the directory from within the directory, list the contents of 'lib' from lib's parent:

[root@host lib]# cd ..
[root@host whatever] ls -la ./lib/
Old 05-09-2006, 01:31 AM   #3
Registered: Aug 2005
Location: Sofia
Distribution: SuSE, ELinOS
Posts: 100

Original Poster
Rep: Reputation: 16
Yes, that works. But I found the cause of it - I'd put a lot of aliases in my .zshrc file, and some of them overlap the names of existing commands (like pp, the perl packager and cc...)
No comments, me master n00b...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segmentation fault fridgider Linux - Software 1 04-09-2005 11:36 AM
why segmentation fault??? andrewnow Programming 8 03-26-2005 06:50 PM
segmentation fault... perdesiz Linux - Software 1 08-18-2003 01:55 AM
Segmentation Fault live2 Linux - General 6 03-02-2003 08:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration