LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2008, 06:19 PM   #1
banso_boy
LQ Newbie
 
Registered: Sep 2004
Location: Germany
Posts: 15

Rep: Reputation: 0
error: Standard C Math Library not found.


I am trying to install a program on K Ubuntu but I keep getting the error message
"configure: error : Standard C Math library -lm not found"

I have tried to use the Adept Manager to search for a standard C math library package but have not been able to locate the right on.
Infact I have installed different packages but none seems to suit the Standard C Math library.
Googling is not been of help.
Anyone who can recommend where i download a package with the Standard C math library, i will be grateful .
 
Old 04-21-2008, 07:49 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
It's actually part of libc6 on Ubunut systems ... I find it hard to believe
it shouldn't be installed on yours. Try a
locate libm\.



Cheers,
Tink
 
Old 04-22-2008, 04:07 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Try running:
Code:
sudo apt-get build-essential
 
Old 04-22-2008, 01:01 PM   #4
banso_boy
LQ Newbie
 
Registered: Sep 2004
Location: Germany
Posts: 15

Original Poster
Rep: Reputation: 0
thanks for your replies.
I did a locate lib\m and the screen did "spit" alot of shit that i couldn`t understand. So what should i be looking for or how should i proceed when I do locate lib\m

I did sudo apt-get build-essential and got the error message
"E: Invalid operation build-essential"


Will appreciate any more ideas.
 
Old 04-22-2008, 01:24 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
it's
sudo apt-get install build-essential


Cheers,
Tink
 
Old 04-22-2008, 01:50 PM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Sorry. My fault, yeah I missed install out. I'm kicking myself at this very moment.
 
Old 04-22-2008, 03:52 PM   #7
banso_boy
LQ Newbie
 
Registered: Sep 2004
Location: Germany
Posts: 15

Original Poster
Rep: Reputation: 0
brianl, you need not kick yourself, Tinkster your friend was around to help. Thanks for your help.
But here is my situation. seems my source list is not uptodate as most connections do fail. Where can I get an updated sources list?

see below




banjika@s501022:~$ sudo apt-get install build-essential
[sudo] password for banjika:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
graphicsmagick cpp-2.95 slib scm
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
dpkg-dev g++ g++-4.1 libstdc++6-4.1-dev patch
Suggested packages:
debian-keyring g++-multilib g++-4.1-multilib gcc-4.1-doc libstdc++6-4.1-doc
diff-doc
The following NEW packages will be installed:
build-essential dpkg-dev g++ g++-4.1 libstdc++6-4.1-dev patch
0 upgraded, 6 newly installed, 0 to remove and 1 not upgraded.
Need to get 3995kB of archives.
After unpacking 14.6MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://nz.archive.ubuntu.com gutsy/main libstdc++6-4.1-dev 4.1.2-16ubuntu2
Could not connect to nz.archive.ubuntu.com:80 (202.7.6.10), connection timed o
ut
Err http://nz.archive.ubuntu.com gutsy/main g++-4.1 4.1.2-16ubuntu2
Connection failed
Err http://nz.archive.ubuntu.com gutsy/main g++ 4:4.1.2-9ubuntu2
Connection failed
Err http://nz.archive.ubuntu.com gutsy/main patch 2.5.9-4
Could not connect to nz.archive.ubuntu.com:80 (202.7.6.10), connection timed o ut
Err http://nz.archive.ubuntu.com gutsy/main dpkg-dev 1.14.5ubuntu16
Connection failed
Err http://nz.archive.ubuntu.com gutsy/main build-essential 11.3ubuntu1
Connection failed
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...c-4.1/libstdc+ +6-4.1-dev_4.1.2-16ubuntu2_i386.deb Could not connect to nz.archive.ubuntu.com: 80 (202.7.6.10), connection timed out
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...c-4.1/g++-4.1_ 4.1.2-16ubuntu2_i386.deb Connection failed
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...c-defaults/g++ _4.1.2-9ubuntu2_i386.deb Connection failed
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...atch/patch_2.5. 9-4_i386.deb Could not connect to nz.archive.ubuntu.com:80 (202.7.6.10), connec tion timed out
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...pkg/dpkg-dev_1. 14.5ubuntu16_all.deb Connection failed
Failed to fetch http://nz.archive.ubuntu.com/ubuntu/...ild-essential/ build-essential_11.3ubuntu1_i386.deb Connection failed
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
banjika@s501022:~$
 
Old 04-22-2008, 03:57 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Heh. Where did the initial list come from? It's a tad surprising that
you should use NZ mirrors from Germany. But even so - the mirrors in
NZ are up, not sure whether they'll disallow intl' traffic.

You could try to just edit you sources.list and replace the occurrences
of /nz. with /de. ... then run apt-get update.


Cheers,
Tink
 
Old 04-24-2008, 09:39 AM   #9
banso_boy
LQ Newbie
 
Registered: Sep 2004
Location: Germany
Posts: 15

Original Poster
Rep: Reputation: 0
Tinkster,

things seem not to be getting better
Here is what I have

banjika@s501022:~$ sudo apt-get install build-essential
[sudo] password for banjika:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package build-essential has no installation candidate
banjika@s501022:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package build-essential is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package build-essential has no installation candidate

If you have another sources.list which I can us, I will gladly appreciate it.
 
Old 04-24-2008, 10:17 AM   #10
banso_boy
LQ Newbie
 
Registered: Sep 2004
Location: Germany
Posts: 15

Original Poster
Rep: Reputation: 0
Talking

Tinkster, brianL
Need not worry, after changing occurences of "//nz." to //de." i did
sudo apt-get update and then
sudo apt-get install build-essential

Everything went on well and I no longer get the original erro message.

Appreciate your help.
 
Old 04-24-2008, 10:30 AM   #11
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Glad you got it sorted out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: UNIX error reporting in the standard C library LXer Syndicated Linux News 0 09-08-2006 04:33 AM
configure: error: Qt (>= Qt 3.3 and < 4.0) (library qt-mt) not found jaygee02 Linux - Software 2 04-30-2006 11:59 PM
Doing math with standard time formats fiservguy Linux - General 1 03-07-2006 08:08 PM
error: Qt (>= Qt 3.0.2) (library qt-mt) not found bogdanf25 Linux - Newbie 16 04-03-2005 01:53 AM
configure: error: Qt (>= Qt 3.1 (20021021)) (library qt-mt) not found Mugatu Linux - Software 14 12-15-2003 04:11 AM


All times are GMT -5. The time now is 12:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration