Help - Search - Members - Calendar
Full Version: Exec Format Error. Binary File Not Executable.
Linuxhelp > Support > Technical Support
david_harvey
Ok, well thats the error i get when i try to "./ventrilo_srv" .
I never have gotten this error before, and I even had ventrilo working on my server before.

I have no idea why all of the sudden it is giving me the error but also, when i tried to run
"./hlds_l_1120_full.bin" it gives me the same error. The accesses are set and I have full superuser access. I am running FreeBSD on a remote server.

Please help me, im paying for this server and all it has done is give me a big headache.

EDIT: Instead of the FreeBSD ventrilo server i tried the linux one and now i get this error:

"/usr/libexec/ld-elf.so.1: Shared object "libstdc++.so.3" not found"
How can I fix it?


Thanks
Dave
david_harvey
I tried to run Halflife Server and got this
CODE
# ./hlds_l_1120_full.bin

ELF binary type "0" not known.

./hlds_l_1120_full.bin: Exec format error. Binary file not executable.


Diffirent File but same error, could it be a system file was changed that isnt allowing me to open them?

dave
Hemant
Looks like....your system was screwed up..
Somehow shared library path is not proper.you can set LD_LIBRARY_PATH variable to /usr/lib or something(where your libs are)

You can also try command "ldconfig" .
david_harvey
sad.gif no luck, if i wanted to do a "repair" on my os is there a command i can do? I really dont care about losing any data on there I just want it to be like it was the day I got the server, things were working fine and then one day I hit ee hostname and the editor went crazy then i hit escape and it asked me to save the file, accidently i hit ok (somehow i changed something in the file prompting it to ask me to save) then things went downhill, and i copied the hostname file from the rescue folder and it still is not cooperating sad.gif
dlab
These are the steps I would have taken to get this working on mmy machine:

CODE
root@abyss:~# locate -u
(wait a few minutes)
root@abyss:~# locate libstdc++
/opt/kde/share/apps/kdevdoctreeview/tocs/libstdc++.toc
/opt/kde/share/apps/devdoctreeview/indices/libstdc++.index
/opt/openoffice/program/libstdc++.so
/opt/openoffice/program/libstdc++.so.5
/usr/doc/gcc-3.2.3/libstdc++-v3
/usr/doc/gcc-3.2.3/libstdc++-v3/README
/usr/doc/gcc-3.2.3/libstdc++-v3/faq.html
/usr/lib/libstdc++.la
/usr/lib/libstdc++.so
/usr/lib/libstdc++.a
/usr/lib/libstdc++.so.5
/usr/lib/libstdc++.so.5.0.3
/usr/i486-slackware-linux/lib/libstdc++-3-libc6.1-2-2.10.0.so
/usr/i486-slackware-linux/lib/libstdc++.so.2.7.2.8
/usr/i486-slackware-linux/lib/libstdc++-2-libc6.1-1-2.9.0.so
/usr/i486-slackware-linux/lib/libstdc++-3-libc6.2-2-2.10.0.so
/usr/i486-slackware-linux/lib/libstdc++.so.4
/usr/i486-slackware-linux/lib/libstdc++-libc6.2-2.so.3
/usr/i486-slackware-linux/lib/libstdc++.so.2.8
/usr/i486-slackware-linux/lib/libstdc++.so.2.9
/usr/i486-slackware-linux/lib/libstdc++.so.2.7.2
/usr/i486-slackware-linux/lib/libstdc++.so.2.8.0
/usr/i486-slackware-linux/lib/libstdc++.so.2.9.0
/usr/i486-slackware-linux/lib/libstdc++.so.4.0.0
/usr/i486-slackware-linux/lib/libstdc++-libc6.1-1.so.2
/usr/i486-slackware-linux/lib/libstdc++-libc6.1-2.so.3
/usr/share/locale/de/LC_MESSAGES/libstdc++.mo
/usr/share/locale/fr/LC_MESSAGES/libstdc++.
root@abyss:~# cd /etc
root@abyss:/etc# vi ld.so.conf
(should open a list of directories)
e.g.:
/usr/local/lib
/usr/X11R6/lib
/usr/i486-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib
/usr/local/lib/pkgconfig/

if you can't find the dir where libstdc++.so.4 is in the list of dirs in vi, type the letter i (to instert stuff in vi) scroll down to the bottom of the list and enter the directory there libstdc resides, for example, mine is /usr/i486-slackware-linux/lib/. After you are done, hit escape and type a colon ":" followed by "w" to write. then type "q" to quit. If you dont want to save the changes to the file, just type "q!" (with an !) and it should return you to your shell.
CODE
root@abyss:/etc# ldconfig
(wait a few minutes)


See if that fixes it. If it doesn't, I'm out..
david_harvey
none of those commands did anything... is it because im using freebsd, or because i am using ssh, or my os is just screwed up.... I really have no clue.
dlab
none of them? maybe your PATH variable is screwed up also..

CODE
root@abyss:~# export PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin


and then try the above again.

I think fbsd has vi, I know netbsd does..
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.