Unable to install FreeBASIC b/c of unexecutable binary file
Linux - NewbieThis 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
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.
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.
Unable to install FreeBASIC b/c of unexecutable binary file
First time poster here, feeling a little frustrated by an install process. In short, I have an Ubuntu Intrepid slice from Slicehost on which I'm attempting to install FreeBASIC 0.20.0b. I've followed the install docs and browsed various threads on the FreeBASIC forums but feel like I have a lower-level problem than just not running the install script properly. Here's why...
The install script fails when trying to ascertain the version I'm installing. The lines it fails on are attempting to execute a file called fbc with the -version parameter. The output at that time is:
Code:
./install.sh: 119: ./fbc: not found
I thought... interesting, because when I ls, I see fbc right there. So I figured I'd try ./fbc -version myself and get the following:
Code:
-bash: ./fbc: No such file or directory
I looked for similar threads on the forums here and saw people asking for the results of "file (filename)" and "ls -lb (filename)"...
file fbc:
Code:
fbc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), stripped
ls -lb fbc:
Code:
-rwxr-xr-x 1 myuser myuser 1418304 Aug 10 2008 fbc
fwiw, I know others have installed FreeBASIC on Ubuntu, as I've referenced threads like the following (and tried to use this script only modified to grab the right file version):
I'm quite the Linux newbie, and even then my experience is really in setting up Apache / PHP / MySQL and DNS. However, from what I understand, I'm observing the rules to execute this file properly. (i.e. case-sensitivity, permissions, trying ./fbc and the full filepath, and attempting to sudo it) There's just some element here that eludes my meager knowledge.
"fbc" is part of the .tar.gz you get when you download FB for Linux - it's precompiled. The results I get for "ldd ./fbc" are:
Code:
not a dynamic executable
This only makes it harder to diagnose. My guess is that this binary is either for a different architecture/OS or it links to a library that's not present in your system.
However, what does this return:
Code:
file fbc
Is it a recognizable file type?
If it's freely available, can you post a link to the exact tarball you downloaded so I can take a look myself?
Thanks for the follow-up. The results of "file fbc" are above in the OP. The tarball is freely available from SourceForge through the link on this page:
Thanks for the follow-up. The results of "file fbc" are above in the OP.
I see, sorry, forgot about that. However this makes the thing "interesting", file says that the file is a standard 32 bits ELF shared executable, but ldd tells us that it isn't. Something is obviously wrong here.
Quote:
The tarball is freely available from SourceForge through the link on this page:
ps. I've downloaded and extracted that package, the fbc binary is executable and works without problem. I have no idea what your problem might be. If the file didn't exist neither "file" nor "ldd" would be able to parse it. I really can't understand this:
Code:
-bash: ./fbc: No such file or directory
You could check the disk with fsck, sometimes inexplicable things are due to some kind of subtle disk corruption.
Hmm... so I attempted a "sudo fsck" and got the following scary message:
Code:
sck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)?
I said no, because severe filesystem damage sounds awful. :P
Hmm... so I attempted a "sudo fsck" and got the following scary message:
Code:
sck 1.41.3 (12-Oct-2008)
e2fsck 1.41.3 (12-Oct-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)?
I said no, because severe filesystem damage sounds awful. :P
Yes, it sounds so. You can't run fsck on a volume that's mounted r/w. Boot from a livecd to do the checks.
Bummer. This is actually a VPS I have at Slicehost, so booting from a CD isn't an option. I suppose I could always backup and wipe the server if need be. Is there any way to confirm this is more than just a potential problem before doing so?
I had the same problem using Ubuntu Natty and FreeBasic 0.21.1.
I extracted the tar file to my /home directory using peazip (linux version-note: peazip is open source) and renamed it the freebasic to save typing in terminal (using the gui). The result was that FreeBasic would not install. Same message install-standalone.sh not found!!!
I then re-extracted the tar file using Ubuntu default unzip program, but did not rename it. And it installed first time in terminal without errors.
This is strange... Or maybe I have been using Windows for too long. I am new to Linux - 10 days now!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.