Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-29-2014, 12:37 AM
|
#1
|
LQ Newbie
Registered: Jan 2014
Location: Shenzhen China
Posts: 25
Rep: 
|
"bad ELF interpreter", What is wrong with my system?
I just install a new system ,centos 6.4, 64bit.
When I trying to run "source", the error occured. What is the problem? I never changed the "/etc/profile",just run "source" command.
Code:
[root@localhost etc]# source profile
-bash: /usr/local/spes/acc-1: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@localhost etc]# source profile
-bash: /usr/local/spes/acc-1: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
|
|
|
01-29-2014, 12:40 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
would be nice to see the content of that file
|
|
|
01-29-2014, 12:42 AM
|
#3
|
LQ Newbie
Registered: Jan 2014
Location: Shenzhen China
Posts: 25
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
would be nice to see the content of that file
|
of course, the following is the content of file :
Quote:
[root@localhost etc]# cat /etc/profile
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`id -u`
UID=`id -ru`
fi
USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"
fi
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
fi
HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; then
export HISTCONTROL=ignoreboth
else
export HISTCONTROL=ignoredups
fi
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
umask 002
else
umask 022
fi
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
if [ "${-#*i}" != "$-" ]; then
. "$i"
else
. "$i" >/dev/null 2>&1
fi
fi
done
unset i
unset -f pathmunge
[root@localhost etc]#
|
|
|
|
01-29-2014, 12:46 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
I can't find anything related, probably you have some scripts in /etc/profile.d?
|
|
|
01-29-2014, 12:49 AM
|
#5
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349
Rep: 
|
Quote:
Originally Posted by Robert Chiu
When I trying to run "source", the error occured. What is the problem? I never changed the "/etc/profile",just run "source" command.
Code:
[root@localhost etc]# source profile
-bash: /usr/local/spes/acc-1: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@localhost etc]# source profile
-bash: /usr/local/spes/acc-1: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
|
The error message says that the file /usr/local/spes/acc-1, called by bash, is running into some kind of problem related to the library file /lib/ld-linux.so.2.
The script does not directly reference "acc-1" (and I couldn't find it on my system), so you may want to try calling profile with bash -x /etc/profile just to see what's really going on.
Also, the output from these commands may provide some clues:
Code:
file /usr/local/spes/acc-1
ldd /usr/local/spes/acc-1
file /lib/ld-linux.so.2
|
|
|
01-29-2014, 12:50 AM
|
#6
|
LQ Newbie
Registered: Jan 2014
Location: Shenzhen China
Posts: 25
Original Poster
Rep: 
|
Quote:
Originally Posted by pan64
I can't find anything related, probably you have some scripts in /etc/profile.d?
|
I do nothing, just a new system. All the config file is default. It is really strange. Any module was lost?
|
|
|
01-29-2014, 01:06 AM
|
#7
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,271
|
So try what was suggested in #5: bash -xv /etc/profile
|
|
|
All times are GMT -5. The time now is 08:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|