Tool Tips (Linux Pro Magazine #179 – Page 34 – 36)


Installed FreeBASIC. I can’t compile for some reason. Typing “fbc” in the terminal gives the error:

fbc: error while loading shared libraries: cannot open shared object file: No such file or directory

After some research I found out the “” could be found in “/lib/x86_64-linux-gnu” on my distro. I use Trisquel GNU/Linux. So I created a symlink from “/lib/x86_64-linux-gnu/” to “/usr/lib/” (where I believe FreeBASIC wants me to have this file).

sudo ln -s /lib/x86_64-linux-gnu/ /usr/lib/

Then I type “fbc” to test again and I get another different error.

fbc: error while loading shared libraries: wrong ELF class: ELFCLASS64

Because of, “Installing 32bit app. Wrong ELF Class: ELFCLASS64” I believe I may not be able to get FreeBASIC working because its a 32-Bit app and my “” is 64-Bit. I just realized I accidentally installed FreeBasic 32-Bit.

After installing the 64-Bit version of FreeBASIC I compiled some test code from a file I created on my Desktop, “test.bas”.

FreeBasic Example Code (From Atom using "language-freebasic" package by mudhairless)
FreeBasic code in Atom using “language-freebasic” package by mudhairless


Screenshot from 2016-08-10 23:02:290


Linux Pro Magazine #179 – Page 34 – 36