Raised This Month: $51 Target: $400
 12% 

Can not compile .SP's, says libstdc++.so.6 missing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-16-2016 , 16:01   Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #1

OS: Linux, specifically Ubuntu 14.04 (x86_64)
MM: 1.10.7, git 951
SM: 1.7.3, git 5290

I just moved to a new host, and whenever I try to compile any .SP's, I get this error.
Code:
./spcomp: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I noticed there is a libstdc++.so.6 in the force_install_dir's "bin" folder. Do I need to symlink that somewhere under sourcemod folders?

For example, for CS:GO installed to: /installfolder/, it created the usual /installfolder/csgo and installfolder/bin structure. Obviously, the SourceMod stuff is all installed under /installfolder/csgo/addons/sourcemod. In a command-line I am changing to /installfolder/csgo/addons/sourcemod/scripting and running ./compile.sh there.

I don't remember having to do anything special with the OS on the previous host to get this working, but then again that was years ago. Maybe I'm just getting old.

I am having the same problem with all games installed on this host (CS:GO, TF2, etc.). The existing pre-comiled .SMX plug-in's run fine, as does SRCDS obviously. I just can't compile anything new.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter

Last edited by Weasel; 01-16-2016 at 16:02.
Weasel is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-16-2016 , 16:07   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #2

PS: lib32gcc1, gcc, and g++ are also already installed on the host (using apt-get install, etc.)
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-16-2016 , 16:43   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #3

a) Just compile the plugins on your desktop.
or
b) Copy bin/libstdc++.so.6 next to spcomp.

It's like a choose your own adventure novel!
__________________
asherkin is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-16-2016 , 20:37   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #4

Quote:
Originally Posted by asherkin View Post
a) Just compile the plugins on your desktop.
or
b) Copy bin/libstdc++.so.6 next to spcomp.
It's like a choose your own adventure novel!
Thanks but, no (Linux) desktop - it's a remote rental VPS with SSH/PuTTy access.
Tried copying the libstdc++.so.6 from /installdirectory/bin to /installdirectory/csgo/addons/sourcemod/scripting (where spcomp is located), that results in the same error.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-16-2016 , 20:38   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #5

No, on your own computer - SMX binaries are platform-independent and portable.
__________________
asherkin is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-16-2016 , 20:48   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #6

I got it working. Just re-installed a bunch of GCC and related stuff. Not sure exactly which did it though. Now its just complaining for a few SP that its can't find smlib.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 01-16-2016 , 22:35   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #7

For reference in case this happens again: try installing lib32stdc++6. Travis (which also runs Ubuntu x64) used to run into the same error and lib32stdc++6 had to be installed to fix it.
__________________
~Wliu
Wliu is offline
Weasel
AlliedModders Donor
Join Date: Apr 2004
Location: Undisclosed / Secure
Old 01-17-2016 , 12:28   Re: Can not compile .SP's, says libstdc++.so.6 missing
Reply With Quote #8

Quote:
Originally Posted by Wliu View Post
For reference in case this happens again: try installing lib32stdc++6. Travis (which also runs Ubuntu x64) used to run into the same error and lib32stdc++6 had to be installed to fix it.
Yeah, that might have been one of the packages I reinstalled.
__________________
Pwease pardon by bad Engrish.
Steam Profile, Steam Group, Stats, Twitter
Weasel is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode