tag:blogger.com,1999:blog-3211409948956809184.post7557381359869400502..comments2024-03-21T04:14:27.443-07:00Comments on Large Scale Machine Learning and Other Animals: Installing BLAS/Lapack/ITPP on Amazon EC2/Ubuntu LinuxDanny Bicksonhttp://www.blogger.com/profile/01517237836051035400noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3211409948956809184.post-27995086006322534072017-02-10T23:47:15.556-08:002017-02-10T23:47:15.556-08:00i am getting this error when i try to configure......i am getting this error when i try to configure...<br /><br />configure: error: cannot find any BLAS library, which is required by LAPACK.<br />You can override this error by using "--without-blas" option, but the<br />functionality of the IT++ library will be limited. You have been warned!<br /> please helpMKhttps://www.blogger.com/profile/10814405494007047650noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-86304488153318994902013-03-19T21:57:26.525-07:002013-03-19T21:57:26.525-07:00Hi,
When you configure lapack, you should point to...Hi,<br />When you configure lapack, you should point to the correct location of libblas and liblapack:<br />./configure --without-fft --with-blas=/usr/lib/libblas.so --with-lapack=/usr/lib/liblapack.so --enable-debug CFLAGS=-fPIC CXXFLAGS=-fPIC CPPFLAGS=-fPIC<br /><br />Best,Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-77771973746506272012013-03-19T21:46:32.360-07:002013-03-19T21:46:32.360-07:00Hi, Danny
My lalack is installed in /usr/lib (inst...Hi, Danny<br />My lalack is installed in /usr/lib (instead of /usr/lib64). So in step 4), I changed the path to /usr/lib. After running the ./configure..., I did not get the link flags -lblas and -llapack. In stead, I got LIBS : /usr/lib/liblapck.so /usr/lib/libblas.so. <br />Is this the correct one?<br />How should I include the library in the makefile to be able to use routines in lapack?<br />I appreciate it.<br />BestAnonymoushttps://www.blogger.com/profile/15417340749578193993noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-33027929319053412642012-11-14T08:21:26.578-08:002012-11-14T08:21:26.578-08:00Hi Ronald,
The answer is written above ;-)
Solutio...Hi Ronald,<br />The answer is written above ;-)<br />Solution: itpp was compiled using dynamic libraries, but your application did not include the -lblas and -llapack link flags.<br />You need to also verify that LD_LIBRARY_PATH is defined and pointing to your lapack libraries.<br /><br />Best, Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-67915635313419499152012-11-14T07:58:40.592-08:002012-11-14T07:58:40.592-08:00Hi, thank you for your notes. I tried to install l...Hi, thank you for your notes. I tried to install lapack following the steps above. Every step went ok, or at least there where no error messages. I installed lapack by using apt-get. The last step, to verify that installation went ok, I get the following:<br />user@local:~/itpp-4.2$ itpp-config --cflags<br />user@local:~/itpp-4.2$ -I/usr/local/include -fPIC<br />user@local:~/itpp-4.2$ itpp-config --libs<br />user@local:~/itpp-4.2$ -L/usr/local/lib -litpp<br /><br />Then I went to the directory where I have the file (in fortran77) to be compiled:<br />user@local:~/fortran-files$ gfortran -llapack -O4 file.f<br />I got the following message<br />user@local:~/fortran-files$ /tmp/ccb8uFsZ.o:file.f:(.text+0x7773): more undefined references to `zheev_' follow<br />collect2: ld returned 1 exit status<br /><br /><br />I will appreciate if you could give me a hint how to fix this. <br /><br />Thank you very much for your attention. <br />p.s. I have ubuntu 12.04 64bit.<br />best regards<br />Ronald Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-83737684205187999442012-09-21T13:00:30.628-07:002012-09-21T13:00:30.628-07:00Something is wrong with your machine setup - those...Something is wrong with your machine setup - those system calls should be automatically recognized. Maybe you updated the compiler without updating c libraries?Danny Bicksonhttps://www.blogger.com/profile/01517237836051035400noreply@blogger.comtag:blogger.com,1999:blog-3211409948956809184.post-30628730048164116422012-09-21T10:21:34.956-07:002012-09-21T10:21:34.956-07:00i try to install itpp but i receive this error whe...i try to install itpp but i receive this error when i make $make <br /> ./../itpp/base/copy_vector.h:61: error: ‘memcpy’ was not declared in this scope<br />In file included from ../../itpp/base/vec.h:459,<br /> from ../../itpp/base/bessel.h:36,<br /> from ../../itpp/base/bessel.cpp:33:<br />../../itpp/base/mat.h: In member function ‘bool itpp::Mat::set(const char*)’:<br />../../itpp/base/mat.h:597: error: ‘EOF’ was not declared in this scope<br />In file included from ../../itpp/base/bessel.h:36,<br /> from ../../itpp/base/bessel.cpp:33:<br />../../itpp/base/vec.h: In member function ‘bool itpp::Vec::set(const char*)’:<br />../../itpp/base/vec.h:536: error: ‘EOF’ was not declared in this scope<br />make[4]: *** [libbase_la-bessel.lo] Error 1<br />make[4]: Leaving directory `/home/mai/ns-allinone-2.30/ns-2.30/itpp-3.10.7/itpp/base'<br />make[3]: *** [all-recursive] Error 1<br />make[3]: Leaving directory `/home/mai/ns-allinone-2.30/ns-2.30/itpp-3.10.7/itpp/base'<br />make[2]: *** [all-recursive] Error 1<br />make[2]: Leaving directory `/home/mai/ns-allinone-2.30/ns-2.30/itpp-3.10.7/itpp'<br />make[1]: *** [all] Error 2<br />make[1]: Leaving directory `/home/mai/ns-allinone-2.30/ns-2.30/itpp-3.10.7/itpp'<br />make: *** [all-recursive] Error 1<br /><br /><br />please tell me what shall i do to solve this errorAnonymoushttps://www.blogger.com/profile/11130463022115971033noreply@blogger.com