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: libtinfo.so.5: cannot open shared object file: No such file or directory
After some research I found out the “libtinfo.so.5” 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/libtinfo.so.5” to “/usr/lib/libtinfo.so.5” (where I believe FreeBASIC wants me to have this file).
sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.5 /usr/lib/libtinfo.so.5
Then I type “fbc” to test again and I get another different error.
fbc: error while loading shared libraries: libtinfo.so.5: 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 “libtinfo.so.5” 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”.
Linux Pro Magazine #179 – Page 34 – 36