sermanet / OverFeat

Other
597 stars 202 forks source link

Issue with libopenblas.so.0 #10

Closed josephmisiti closed 10 years ago

josephmisiti commented 10 years ago

If followed your directions for installation on Ubuntu 12.04 LTS (via AWS) and am getting the following error when trying to run the example:

$ bin/linux_64/overfeat samples/bee.jpg
sh: 1: convert: not found
/socialq/overfeat/bin/linux_64/overfeatcmd: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
josephmisiti commented 10 years ago

Tried this, and it didnt fix it either

ubuntu@ip-10-118-147-134:/socialq/overfeat$ sudo apt-get install libopenblas-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  liblapack3gf
The following NEW packages will be installed:
  libopenblas-base
0 upgraded, 1 newly installed, 0 to remove and 80 not upgraded.
Need to get 3,625 kB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise/universe libopenblas-base amd64 0.1alpha2.2-3 [3,625 kB]
Fetched 3,625 kB in 0s (7,363 kB/s)
Selecting previously unselected package libopenblas-base.
(Reading database ... 60951 files and directories currently installed.)
Unpacking libopenblas-base (from .../libopenblas-base_0.1alpha2.2-3_amd64.deb) ...
Setting up libopenblas-base (0.1alpha2.2-3) ...
update-alternatives: using /usr/lib/openblas-base/libopenblas.so.0 to provide /usr/lib/libblas.so.3gf (libblas.so.3gf) in auto mode.
ubuntu@ip-10-118-147-134:/socialq/overfeat$ bin/linux_64/overfeat samples/bee.jpg
/socialq/overfeat/bin/linux_64/overfeatcmd: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
sh: 1: convert: not found
ubuntu@ip-10-118-147-134:/socialq/overfeat$ sudo apt-get install libopenblas-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  liblapack3gf
The following NEW packages will be installed:
  libopenblas-base
0 upgraded, 1 newly installed, 0 to remove and 80 not upgraded.
Need to get 3,625 kB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise/universe libopenblas-base amd64 0.1alpha2.2-3 [3,625 kB]
Fetched 3,625 kB in 0s (7,363 kB/s)
Selecting previously unselected package libopenblas-base.
(Reading database ... 60951 files and directories currently installed.)
Unpacking libopenblas-base (from .../libopenblas-base_0.1alpha2.2-3_amd64.deb) ...
Setting up libopenblas-base (0.1alpha2.2-3) ...
update-alternatives: using /usr/lib/openblas-base/libopenblas.so.0 to provide /usr/lib/libblas.so.3gf (libblas.so.3gf) in auto mode.
ubuntu@ip-10-118-147-134:/socialq/overfeat$ bin/linux_64/overfeat samples/bee.jpg
/socialq/overfeat/bin/linux_64/overfeatcmd: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
sh: 1: convert: not foundubuntu@ip-10-118-147-134:/socialq/overfeat$ sudo apt-get install libopenblas-base
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  liblapack3gf
The following NEW packages will be installed:
  libopenblas-base
0 upgraded, 1 newly installed, 0 to remove and 80 not upgraded.
Need to get 3,625 kB of archives.
After this operation, 19.6 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ precise/universe libopenblas-base amd64 0.1alpha2.2-3 [3,625 kB]
Fetched 3,625 kB in 0s (7,363 kB/s)
Selecting previously unselected package libopenblas-base.
(Reading database ... 60951 files and directories currently installed.)
Unpacking libopenblas-base (from .../libopenblas-base_0.1alpha2.2-3_amd64.deb) ...
Setting up libopenblas-base (0.1alpha2.2-3) ...
update-alternatives: using /usr/lib/openblas-base/libopenblas.so.0 to provide /usr/lib/libblas.so.3gf (libblas.so.3gf) in auto mode.
ubuntu@ip-10-118-147-134:/socialq/overfeat$ bin/linux_64/overfeat samples/bee.jpg
/socialq/overfeat/bin/linux_64/overfeatcmd: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory
sh: 1: convert: not found
josephmisiti commented 10 years ago

The fix is the following:

 sudo apt-get install libopenblas-base

And then

 export LD_LIBRARY_PATH=/usr/lib/openblas-base/

Although, if you build from source, I think you could change the LD_LIBRARY_PATH and you would be fine

 export LD_LIBRARY_PATH=/opt/OpenBLAS/lib/
yusong-shen commented 10 years ago

Thanks josephmisiti, it is really helpful :)

zopf commented 10 years ago

+1

nguyenminhduc9988 commented 9 years ago

+1

GadiZimerman commented 9 years ago

+1

Coldmooon commented 9 years ago

+1

hewr1993 commented 9 years ago

+1

zkfairytale commented 9 years ago

+10086

wincle commented 9 years ago

+10086

gaominghui commented 9 years ago

Although, if you build from source, I think you could change the LD_LIBRARY_PATH and you would be fine

export LD_LIBRARY_PATH=/opt/OpenBLAS/lib/

this works without sudo apt-get install libopenblas-base

vladimir79 commented 8 years ago

really nice!!!

obust commented 8 years ago

+1

StrangeTcy commented 8 years ago

Also helped with the same issue on Ubuntu 16.04

raditha commented 8 years ago

+1

jdmlaureate commented 7 years ago

For Oracle Linux, CentOS, Red Hat:

yum install openblas.x86_64 openblas-devel.x86_64

DoctorKey commented 7 years ago

Thanks josephmisiti. Solve the problem when I study https://github.com/xianyi/OpenBLAS/wiki/User-Manual

Alliance-DENG commented 6 years ago

Thanks josephmisiti! I met the same problem, and solved it with "export LD_LIBRARY_PATH=/opt/OpenBLAS/lib/"

CP-here commented 6 years ago

Thanks josephmisiti!

bhargav0410 commented 6 years ago

Very helpful. Thanks josephmisiti

ZhangYHui commented 5 years ago

Download and install from https://pkgs.org/download/libopenblas.so.0()(64bit).

ZhangYHui commented 5 years ago

you need download and install libopenblas, and the wed is : https://pkgs.org/download/libopenblas.so.0()(64bit)

emna210 commented 5 years ago

just add sudo before the commande !! ans it will work !!

DreamerCPS commented 4 years ago

many thanks

nabulsi commented 4 years ago

Thanks josephmisiti