-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04: stdc++ not recognized #20
Comments
@JeffreyBenjaminBrown the I'd suggest to |
Thank you, Mr. Riedel! My system claims to already have the latest versions of both of those:
|
That's strange; can you create a file #include <iostream>
int main(int argc, char *argv[])
{
std::cout << "Hello" << std::endl;
return 0;
} |
Yessir! It seems to work:
|
@JeffreyBenjaminBrown can I ask you try to use Cabal to install and then just try |
Installing via cabal worked! My global Haskell installation uses GHC 7.10.3. (Alas, the code I hope to use it with is in Stack ..) |
I'm hitting the same issue on CentOS 6, did you find a solution? |
@janvogt Aside from using Cabal? I did not. But I didn't keep looking either; it might be out there. |
People using Ubuntu or any other Debian-based distro here there are two solutions that worked for me:
apt-get update && apt-get install g++-7 -y
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/libstdc++.so
ln -s /usr/bin/g++-5 /usr/bin/g++
export PATH="/usr/lib/gcc/x86_64-linux-gnu/5:$PATH" |
When I run
apt-get install libstdc++6
, I am informed thatlibstdc++6 is already the newest version (7.2.0-1ubuntu1~16.04)
.But when I try to install double-conversion (using Stack), I get this error:
The text was updated successfully, but these errors were encountered: