Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Emerge scipy fails, blas not found despite being installed

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
andersas
n00b
n00b
Posts: 11
Joined: Sat May 09, 2009 7:19 pm

Emerge scipy fails, blas not found despite being installed

  • Quote

Post by andersas » Fri Jan 31, 2014 9:43 pm

Hi

I've recently had some problems installing scipy (0.12.1 and 0.13.2-r1).

When I emerge scipy, I get the error

Code: Select all

Blas (http://www.netlib.org/blas/) libraries not found.
I tracked down the problem to be a combination of numpys distutils and the site.cfg file generated by the scipy ebuild.

In the scipy ebuild site.cfg (/var/tmp/portage/sci-libs/scipy-0.13.2-r1/work/scipy-0.13.2/site.cfg), atlas is specified twice:

Code: Select all

[blas]
include_dirs = 
library_dirs = :/usr/lib64
blas_libs = cblas,atlas,blas,atlas,
[lapack]
library_dirs = :/usr/lib64
lapack_libs = lapack,atlas,blas,atlas,cblas,atlas,
Removing the duplicates enabled a successful install.


Why does the ebuild specify atlas twice (or three times for lapack)? Does it only do this on my system?
(please somebody try emerging scipy and check /var/tmp/portage/sci-libs/scipy-0.13.2-r1/work/scipy-0.13.2/site.cfg)

The file that does the actual check is /usr/lib/python3.2/site-packages/numpy/distutils/system_info.py.
In the function _check_libs, it simply checks to see if the number of found libraries equals the number of
required libraries (if len(found_libs) == len(libs)). If a library (e.g. atlas) is specified twice, this fails.


Am I the only one who is unable to install scipy because of this?


The problem is also present in the ebuild for numpy. Here, the site.cfg file also contains duplicates,
but this does not prevent a successful compilation. It only prevents numpy from using the optimized lapack and blas routines.


Anders Søndergaard
Top
zhMFe3
n00b
n00b
User avatar
Posts: 11
Joined: Fri Jan 24, 2014 2:49 pm
Location: Germany

same problem

  • Quote

Post by zhMFe3 » Mon Mar 10, 2014 4:54 pm

yet, doesn't it look like a list of (PROPERTY,VALUE) pairs? I.e.: property1,value1,property2,value2
so...

Code: Select all

[blas]
include_dirs = 
library_dirs = :/usr/lib64
blas_libs = cblas,atlas,blas,atlas,
[lapack]
library_dirs = :/usr/lib64
lapack_libs = lapack,atlas,blas,atlas,cblas,atlas,
is probably meant to be read like this:

Code: Select all

blas_libs = {cblas=atlas, blas=atlas}
like the eselect values for the same modules.

/usr/lib64 is the correct path to those libraries.

So, is there a related scipy bug report?
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic