QB64.org Forum
Active Forums => QB64 Discussion => Topic started by: jonathanleger on April 17, 2020, 10:59:21 am
-
Hi all,
I'm new here, though I used QB64 a few years ago and love it. I grew up coding in QBasic so I think it's awesome that you have done this.
QB64 runs just fine on my Mac laptop, but I'm running into problems getting it to run on Linux (CentOS). I'm getting this error when I run it:
/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./qb64)
I'm not finding Google searches to be much help in how to solve this problem. Any ideas?
Thanks!
Jon
-
Just s'more info. It appears that what I have has CXXABI_1.3.7 but not CXXABI_1.3.9.
I'll see if I can update libstdc++.so.6
Jon
-
Try running the setup script instead of the prebuilt binary:
./setup_lnx.sh
You may need to chmod +x it first.
-
Then you'll have a new qb64 binary built for your system. Required libs may be automatically downloaded as well.
-
Great thanks for the fast response! I did that and it told me this:
You are trying to run this script as root. This is highly unrecommended.
This script will prompt you for your sudo password if needed to install packages.
That was all it said, and then it stopped and went back to the command line.
-
Never mind. I figured it out. Thanks again!
-
Well shoot, it rebuilt it but I still get the same error:
qb64: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./qb64)
-
Try deleting the qb64 binary first. I suspect it didn't end up actually building after all.
-
You're correct, it didn't create the executable. Here's the output:
Fedora/Redhat based distro detected.
Compiling and installing QB64...
Building library 'LibQB'
Building library 'FreeType'
Building library 'Core:FreeGLUT'
Building 'QB64'
g++: error: unrecognized command line option ‘-no-pie’
/home/jscriptsdev/myseosnapshot.com/app/apis/qb64
It appears that the qb64 executable file was not created, this is usually an indication of a compile failure (You probably saw lots of error messages pop up on the screen)
Usually these are due to missing packages needed for compilation. If you're not running a distro supported by this compiler, please note you will need to install the packages listed above.
If you need help, please feel free to post on the QB64 Forums detailing what happened and what distro you are using.
Also, please tell them the exact contents of this next line:
DISTRO: redhat
Thank you for using the QB64 installer.
-
You seem to have an outdated version of GCC.
You can try removing the -no-pie switch in the compile line in the setup script (no guarantees) or maybe try upgrading gcc. Maybe this will help https://medium.com/@bipul.k.kuri/install-latest-gcc-on-centos-linux-release-7-6-a704a11d943d (https://medium.com/@bipul.k.kuri/install-latest-gcc-on-centos-linux-release-7-6-a704a11d943d)
-
Ok. I'll just get a newer version of gcc. The one installed is apparently really old (4.8).
Thanks for your help!
-
Okay, so I compiled gcc 7.3 (9 wouldn't compile for some reason). Worked fine. Re-ran the script without error:
Fedora/Redhat based distro detected.
Compiling and installing QB64...
Building library 'LibQB'
Building library 'FreeType'
Building library 'Core:FreeGLUT'
Building 'QB64'
/home/jscriptsdev/myseosnapshot.com/app/apis/qb64
Done compiling!!
Creating ./run_qb64.sh script...
Adding QB64 menu entry...
Running QB64...
QB64 is located in this folder:
/home/jscriptsdev/myseosnapshot.com/app/apis/qb64
But when I run the executable now it says simply:
freeglut (./qb64):
And goes back to the command line.