Skip to content
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

Issue with libopenblas.so.0 #10

Closed
josephmisiti opened this issue Apr 21, 2014 · 25 comments
Closed

Issue with libopenblas.so.0 #10

josephmisiti opened this issue Apr 21, 2014 · 25 comments

Comments

@josephmisiti
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link

Thanks josephmisiti, it is really helpful :)

@zopf
Copy link

zopf commented Dec 4, 2014

+1

4 similar comments
@nguyenminhduc9988
Copy link

+1

@GadiZimerman
Copy link

+1

@Coldmooon
Copy link

+1

@hewr1993
Copy link

+1

@zkfairytale
Copy link

+10086

1 similar comment
@wincle
Copy link

wincle commented Jul 7, 2015

+10086

@gaominghui
Copy link

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
Copy link

really nice!!!

@obust
Copy link

obust commented Feb 2, 2016

+1

@StrangeTcy
Copy link

Also helped with the same issue on Ubuntu 16.04

@raditha
Copy link

raditha commented Oct 10, 2016

+1

@jdmlaureate
Copy link

For Oracle Linux, CentOS, Red Hat:

yum install openblas.x86_64 openblas-devel.x86_64

@DoctorKey
Copy link

DoctorKey commented Aug 17, 2017

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

@Alliance-DENG
Copy link

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

@CP-here
Copy link

CP-here commented Aug 9, 2018

Thanks josephmisiti!

@bhargav0410
Copy link

Very helpful. Thanks josephmisiti

@ZhangYHui
Copy link

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

@ZhangYHui
Copy link

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

@emna210
Copy link

emna210 commented Dec 27, 2018

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

@DreamerCPS
Copy link

many thanks

@nabulsi
Copy link

nabulsi commented Jul 7, 2020

Thanks josephmisiti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests