Author Topic: Trying to install QB64 on CentOS  (Read 4141 times)

0 Members and 1 Guest are viewing this topic.

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Trying to install QB64 on CentOS
« 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:

Quote
/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

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #1 on: April 17, 2020, 11:01:38 am »
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

FellippeHeitor

  • Guest
Re: Trying to install QB64 on CentOS
« Reply #2 on: April 17, 2020, 11:02:14 am »
Try running the setup script instead of the prebuilt binary:

Code: [Select]
./setup_lnx.sh
You may need to chmod +x it first.

FellippeHeitor

  • Guest
Re: Trying to install QB64 on CentOS
« Reply #3 on: April 17, 2020, 11:02:44 am »
Then you'll have a new qb64 binary built for your system. Required libs may be automatically downloaded as well.

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #4 on: April 17, 2020, 11:06:04 am »
Great thanks for the fast response! I did that and it told me this:

Quote
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.

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #5 on: April 17, 2020, 11:07:51 am »
Never mind. I figured it out. Thanks again!

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #6 on: April 17, 2020, 11:09:16 am »
Well shoot, it rebuilt it but I still get the same error:

Quote
qb64: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by ./qb64)

FellippeHeitor

  • Guest
Re: Trying to install QB64 on CentOS
« Reply #7 on: April 17, 2020, 11:18:45 am »
Try deleting the qb64 binary first. I suspect it didn't end up actually building after all.

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #8 on: April 17, 2020, 11:26:17 am »
You're correct, it didn't create the executable. Here's the output:

Quote
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.

FellippeHeitor

  • Guest
Re: Trying to install QB64 on CentOS
« Reply #9 on: April 17, 2020, 11:31:24 am »
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

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #10 on: April 17, 2020, 11:32:38 am »
Ok. I'll just get a newer version of gcc. The one installed is apparently really old (4.8).

Thanks for your help!

Offline jonathanleger

  • Newbie
  • Posts: 8
    • View Profile
Re: Trying to install QB64 on CentOS
« Reply #11 on: April 17, 2020, 01:24:09 pm »
Okay, so I compiled gcc 7.3 (9 wouldn't compile for some reason). Worked fine. Re-ran the script without error:

Quote
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:

Quote
freeglut (./qb64):

And goes back to the command line.