Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* libm ? on redhat 6.0
@ 1999-05-16 16:58 greg meno
  0 siblings, 0 replies; 6+ messages in thread
From: greg meno @ 1999-05-16 16:58 UTC (permalink / raw)
  To: axp-list

when building packages on redhat 6.0 i frequently get
"/usr/bin/ld: cannot open -lm: No such file or directory"
which library is ld refering to ? and which rpm is this library part
of ?

thanks
-GReg


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libm ? on redhat 6.0
@ 1999-05-16 18:41 clc31
  0 siblings, 0 replies; 6+ messages in thread
From: clc31 @ 1999-05-16 18:41 UTC (permalink / raw)
  To: axp-list

libm is the math library
it is contained in the glibc package
the file you want should be /lib/libm.so.6.1 which should be
a symbolic link to /lib/libm-2.1.1.so (for redhat 6)
I don't know what's causing your particular problem, but sometimes
these error messages occur when you are trying to compile something
but haven't explicitly included the path to a library you are using.
I get this error message for -lX11 something, and it can be fixed by
including -L/usr/X11R6/lib as an option along with -lX11.
It may work for you if you use -L/lib
-Chaz


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libm ? on redhat 6.0
@ 1999-05-16 19:44 designer seven
  0 siblings, 0 replies; 6+ messages in thread
From: designer seven @ 1999-05-16 19:44 UTC (permalink / raw)
  To: axp-list

-lm is for libm ... which should be part of glibc and
typically resides in /lib. Just to make sure the
routine stuff is done, check the file /etc/ld.so.conf
and make sure there is a line with '/lib' in it. If
not, add it (for some reason, my ld.so.conf didn't
have it). After that, run 'ldconfig -v' .. the -v is
for verbose.. so you can see what is getting put into
the ld.so.cache ... you may want to grep or more it to
see if you get libm in there. 

If the file(s) libm.so.* is completely missing, then
you have a bigger problem.

D.

--- greg meno <capt_n_emo@hotmail.com> wrote:
> when building packages on redhat 6.0 i frequently
> get
> "/usr/bin/ld: cannot open -lm: No such file or
> directory"
> which library is ld refering to ? and which rpm is
> this library part
> of ?
> 
> thanks
> -GReg
> 
> 
>
_______________________________________________________________
> Get Free Email and Do More On The Web. Visit
> http://www.msn.com
> 
> -- 
> To unsubscribe: send e-mail to
> axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to
> axp-list@redhat.com
> 
> 

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libm ? on redhat 6.0
@ 1999-05-17  2:25 greg meno
  0 siblings, 0 replies; 6+ messages in thread
From: greg meno @ 1999-05-17  2:25 UTC (permalink / raw)
  To: axp-list

yes i noticed /etc/ld.so.conf was missing /lib so i added that
then i ran ldconfig -v |grep libm and there were libm.so.6.1 and
libm-2.1.1.so, yet still ld complains any ideas ?
-GReg

>
>-lm is for libm ... which should be part of glibc and
>typically resides in /lib. Just to make sure the
>routine stuff is done, check the file /etc/ld.so.conf
>and make sure there is a line with '/lib' in it. If
>not, add it (for some reason, my ld.so.conf didn't
>have it). After that, run 'ldconfig -v' .. the -v is
>for verbose.. so you can see what is getting put into
>the ld.so.cache ... you may want to grep or more it to
>see if you get libm in there.
>
>If the file(s) libm.so.* is completely missing, then
>you have a bigger problem.
>
>D.
>


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libm ? on redhat 6.0
@ 1999-05-17  3:16 designer seven
  0 siblings, 0 replies; 6+ messages in thread
From: designer seven @ 1999-05-17  3:16 UTC (permalink / raw)
  To: axp-list

When you say ld complains, what exactly do you mean?
If you're encountering problems while compiling
something, what is the exact line that make is trying
to execute that results in your problem? Sorry if
you've already posted these details,.. if so, please
just email me directly.

D.


--- greg meno <capt_n_emo@hotmail.com> wrote:
> yes i noticed /etc/ld.so.conf was missing /lib so i
> added that
> then i ran ldconfig -v |grep libm and there were
> libm.so.6.1 and
> libm-2.1.1.so, yet still ld complains any ideas ?
> -GReg
> 

_____________________________________________________________
Do You Yahoo!?
Free instant messaging and more at http://messenger.yahoo.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: libm ? on redhat 6.0
@ 1999-05-19  1:18 greg meno
  0 siblings, 0 replies; 6+ messages in thread
From: greg meno @ 1999-05-19  1:18 UTC (permalink / raw)
  To: designer_7; +Cc: axp-list

gcc -v
egcs-2.91.66(egcs-1.1.2 release)
it's the standard compiler and such that comes with 6.0 i did a full install 
so it's all fresh
ld -v
GNU ld version 2.9.1

-GReg




>Hmmm.. very strange indeed. I am suspicious about your
>compiler system now...
>
>D.
>





> >
> > but this should work
> > $gcc -L/lib -lm /home/GReg/test.c
> >
> > and that gives me:
> > /usr/bin/ld: cannot open -lm: No such file or
> > directory
> > collect2: ld returned 1 exit status
> >


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-05-19  1:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-05-17  2:25 libm ? on redhat 6.0 greg meno
  -- strict thread matches above, loose matches on Subject: below --
1999-05-19  1:18 greg meno
1999-05-17  3:16 designer seven
1999-05-16 19:44 designer seven
1999-05-16 18:41 clc31
1999-05-16 16:58 greg meno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox