So, I just installed FreeBasic on my Debian 11 laptop seemingly successfully. I did this by downloading version 1.09.0 and extracting it in a custom folder. then I executed the ./install.sh -i command as stated in the readme.txt file. Of course, I did install the necessary libraries. I made sure fbc ran in the terminal and that seemed to work okay. Then I opened Geany and loaded hello.bas. I changed the build command to fbc "%f". When I tried to build the code, I got:
Compilation failed because the linker (ld) cannot find library files. They may not be installed or there may be another issue. It's hard to tell without more specifics.
If you installed with ./install.sh then FB is installed in /usr/local, which should be OK.
Keep in mind that installing packages manually on Debian systems may cause package dependency/version problems.
idea1407 wrote:...I made sure fbc ran in the terminal and that seemed to work okay. Then I opened Geany and loaded hello.bas...
What command did you run run the terminal? Based on what did you decide that is was ok? Geany does not do any magic, so it does not make much sense to me.
Can you post the output of these 3 commands:
- To check the installed fbc version: fbc --version
- To locate fbc: which fbc
- To locate fbc & show the file details: which fbc | xargs ls -l
Did the OP ever manage to solve this problem? I found it's weird. It could fail to find -ltinfo, but -lm, -ldl, -pthread, -lc can't be fail. Otherwise his system should be broken to the state of can't boot into the desktop.