LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-08-2006, 08:36 AM   #1
halturata
Member
 
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:
Code:
[root@host lib]# ls -la
Segmentation fault
or
Code:
[root@host lib]# ls -la
ls: error while loading shared libraries: ./libtermcap.so.2: 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 libtermcamp.so.2 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???

Thanks.
 
Old 05-08-2006, 10:13 AM   #2
visaris
Member
 
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:

Code:
[root@host lib]# cd ..
[root@host whatever] ls -la ./lib/
 
Old 05-09-2006, 01:31 AM   #3
halturata
Member
 
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...
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 PM.

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