GCC not working, please help [libmpc.so.2 missing]

I have a linode running slackware and I have more things I'd like to do with it, but for now all I have done is installed a teamspeak server.

For some reason, I can't get anything to compile from source - GCC isn't working. After further investigation, I do a hello world app and try to compile it - i get the following error:

root@localhost:/usr/src/testcompile# gcc -o test test.c

/usr/libexec/gcc/x86_64-slackware-linux/4.8.2/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory

I have searched tirelessly for how to get this shared object but all roads have lead to dead ends so far. I haven't really made any configuration changes to the linode at all - just installed the teamspeak 3 server. Shouldn't the slackware distro provided by linode compile code out of the box? Seems like a very basic thing to me. I haven't tried creating a new linode because it will cost more money and even if it resolves the issue, I don't want to go through the pain of migrating my teamspeak server yet a second time to the new linode if that does fix the issue (not to mention who's to say it wont happen again?)

Thanks in advance for any help anyone might be able to provide!

3 Replies

If you're not using a custom pv-grub kernel, you're actually using Linode's kernel not slackwares.

@vonskippy:

If you're not using a custom pv-grub kernel, you're actually using Linode's kernel not slackwares.

Interesting observation, but how does that help me find a solution to my problem? Am I overlooking something obvious here?

You may have an installation/configuration problem. This library is for doing arbitrary-precision arithmetic with complex numbers, and is not something you would expect to be used by a "hello world" program. This forum discussion may give you some pointers. You might find better answers in a Slackware-specific forum or mailing list.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct