-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cblas.h not found when installing on ubuntu 20.04.1 #1602
Comments
Hi @TeaWolf, I am surprised AMICI doesn't find your cblas header files on Ubuntu. Could you please post the output of If there is no |
I'm unfamiliar with locate so I used find
The file you mention does seem to be there though |
That's funny. Could you please post the full output of |
Ah. I think the issue is that you are installing AMICI inside a conda environment. This does not use the regular include directories, and therefore, does not find Does AMICI installation succeed after |
You will probably have to set some additional environment variable during AMICI installation and when importing models: |
Yes sorry it is a conda environment, forgot to mention it. The combination of
Does the trick. However my conda environment seemed to have an openblas in it before
Not sure why the other one wasn't doing it. |
Great.
The issue was only the missing |
well I actually tried BLAS_LIBS=-lopenblas before installing the openblas from conda forge just to see if it would work, but it failed with the same error. |
Ah, yes, it seems |
ah so that's it then! |
Sorry to reopen this again, but I got the same error message during installation with It's an Alma Linux 8.7 system, and $ yum list installed | grep blas
blas.x86_64 3.8.0-8.el8 @appstream
blas-devel.x86_64 3.8.0-8.el8 @powertools
openblas-openmp.x86_64 0.3.15-4.el8 @powertools
openblas-srpm-macros.noarch 2-2.el8 @appstream The output of the commands you mentioned give: $ locate /usr/*cblas*.h
$ find /usr -name '*blas*.h'
find: ‘/usr/share/polkit-1/rules.d’: No permission
find: ‘/usr/share/selinux/targeted/default/active’: No permission
/usr/include/cblas/cblas.h
/usr/include/cblas/cblas_f77.h
/usr/include/cblas/cblas_mangling.h
/usr/include/cblas/cblas_test.h
find: ‘/usr/libexec/initscripts/legacy-actions/auditd’: No permission
find: ‘/usr/libexec/warewulf/cgi-bin’: No permission Any idea what else I could try? |
Hi @winkmal, does BLAS_CFLAGS="$(pkg-config --cflags blas)" BLAS_LIBS="$(pkg-config --libs blas)" pip install amici work? |
Unfortunately not, I still get the same error message. As far as I understand, this writes the output of the commands in braces into two environment variables, which are then read by $ pkg-config --cflags blas
$ pkg-config --libs blas
-lblas |
Okay, according to that, BLAS_CFLAGS="-I/usr/include/cblas/" BLAS_LIBS="-lblas" pip install amici might work. Does $ locate /usr/*cblas.a
/usr/lib/x86_64-linux-gnu/libcblas.a -> BLAS_CFLAGS="-I/usr/include/cblas/" BLAS_LIBS="-L/usr/lib/x86_64-linux-gnu/ -lcblas" pip install amici |
No, nothing. I tried: BLAS_CFLAGS="-I/usr/include/cblas/" BLAS_LIBS="-lblas" pip3 install --user amici --upgrade Now, I get a different error message: amici/amici_wrap.cxx:174:11: fatal error: Python.h: No such file or directory
# include <Python.h>
^~~~~~~~~~ As a sidenote, I could get AMICI to install and work on an Ubuntu 22.04 based Linux system (Python 3.10.6 via |
It looks like python header files are not installed by default on your system (or at least not in a default location). On Ubuntu, they come in the If you can't use yum to install that, it's somewhat inconvient: You'll have to download that manually, unpack it, and set environment variable |
I've had no problem installing amici on my OSX laptop, but no go on my Ubuntu desktop
Using the following commands as per the documentation.
I get the following inclusion error.
I see that there's an issue open talking about making this more flexible.
Is there some kind of fix that I could apply at the moment however?
The text was updated successfully, but these errors were encountered: