SliTaz SliTaz Forum

You are not logged in.

#1 2012-09-15 22:20:29

lobotazmania
Member
Registered: 2012-07-23
Posts: 16

error when im trying to compile

hi all, in trying to learn programing in c (and well others language too) but i have the following messages when i try to compile a program, im really newbie in this programing world but i need somebody help me to begin in this world, well the messages is this:

/usr/lib/gcc/i486-slitaz-linux/4.5.2/ccl: error while loading shared libraries:

libmpc.so.2:cannot open shared object file: no such file or directory

what can i do to solve this error (troubleshooting) thank you.

Offline

#2 2012-09-15 22:29:36

tropetre
Member
Registered: 2012-07-06
Posts: 79

Re: error when im trying to compile

When I encountered that problem I just had missing dependencies but if you're running 4.0 stable I belive that libmpc.so.2 should already be there. Type $ find /usr/lib/libmpc.* to see if it's missing...

Offline

#3 2012-09-15 23:36:48

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: error when im trying to compile

@lobotazmania

You had lib errors trying to get seamonkey to start:

http://forum.slitaz.org/topic/troubles-installing-seamonkey

My guess is gcc compiler won't run because your slitaz installation is broken.

Verify your slitaz install source:

Slitaz iso with md5sum and if installing from a burned live cd use Check media from the live cd boot menu.

Reinstall Slitaz,seamonkey and some other programs you use from slitaz repo.

Make sure they run without errors.

Now install slitaz-toolchain

Offline

#4 2012-09-16 19:01:05

Filou
Moderator
Registered: 2011-05-03
Posts: 256

Re: error when im trying to compile

For problems like this, you may use

# tazpkg search-pkgname (for example:) libmpc.so.2

result for libmpc is the package

mpc-library

Do you have this package installed?

Offline

#5 2012-09-16 22:14:07

lobotazmania
Member
Registered: 2012-07-23
Posts: 16

Re: error when im trying to compile

@filou: thank you righnow i believe i can compile, but appear this error: file.c:1:21: fatal error:

studio.h. no such file or directory wall i believe that is a mistake, but  i dont know or no understand

what is my error the comand i use is this: gcc -o file file.c do you can tellme something about just a

trick maybe the command expresion is wrong and just this trouble its stoping that i can continue learn

about c programing im just reading a book about and i just do it for funny (jeje) is just my hobbie and i want to learn perl, bash etc an later shared my knowledge with others peoples.the solution to the trouble  was only  install mpc-library than you.

Offline

#6 2012-09-19 16:10:34

lobotazmania
Member
Registered: 2012-07-23
Posts: 16

Re: error when im trying to compile

hi im just write this because i can compile very good in a slitaz and thank you friends for your help.

im understand anothers things about linux (slitaz) and i to try to do other things, the trouble was a

mising libraries and when im install the system works very good.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]