Find the answer to your Linux question:
Results 1 to 10 of 10

Thread: Compiling error

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Compiling error

    Can anyone help me out with thi error:

    usr/bin/ld: cannot find -lblas                                                                                         
    collect2: ld returned 1 exit status                                                                                     
    scons: *** [] Error 1

  2. #2
    It appears as though the linker is looking for the blas library, whatever that is. What is your distro?

  3. #3
    what do you mean distro........please forgive me im new to linux

  4. $spacer_open
  5. #4
    Well, you are using a Red Hat or Fedora Linux distribution, I assume, b/c you posted in this forum. I guess I meant what version of the distribution are you running, e.g. Fedora 15, Red Hat Enterprise Server 5.2, etc.

    Do this to be sure:

    grep -H . /etc/*-release

  6. #5
    Red Hat Enterprise Linux 5.4

  7. #6
    The package you want is blas-3.0-37.el5.i386.rpm (or thereabouts, version-wise). If you have the original installation media, you should find it there. Or if your RHN is set up, you should be able to 'yum install blas'.

    If neither is an option for you, you could always grab it from a CentOS/ScientificLinux repo, but that should be a last resort.

  8. #7
    I did a yum install blas it intalled 4 packages but I still get the same error

  9. #8
    so if you do this command, you get something back, right?

    /sbin/ldconfig -p|grep libblas
    I'm not sure why the linker is not finding it - as long as the blas library is in a standard place (e.g., /usr/lib), which i'm sure it is (mine is on my RHEL4 box anyway). Maybe you should explicitly tell the linker where the library is, something like:

    gcc -o myprog -L/usr/lib  myprog.c
    maybe post the compiling command you are running (or the contents of your Makefile), and a gcc pro here can help you further.

  10. #9
    I get this when i execute this code:

    /sbin/ldconfig -p|grep libblas (libc6,x86-64) => /usr/lib64/atlas/ (libc6,x86-64) => /usr/lib64/ (libc6) => /usr/lib/

  11. #10
    Im trying to install arac.

    after installin scons.........I run the command:


    and the following error occurs.

    usr/bin/ld: cannot find -lblas
    collect2: ld returned 1 exit status
    scons: *** [] Error 1
    Last edited by Donasio; 06-16-2011 at 09:39 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts