You are not logged in.

#1 2015-09-03 21:04:41

tbernardes
Member
From: Brazil
Registered: 2015-08-10
Posts: 8

scilab: error while loading shared libraries: libmpi.so.1

Hi, everyone!
 
     I installed the scilab (archlinuxfr/scilab), but I have a problem:

 [tbernardes@Arch ~]$ scilab
/usr/bin/scilab-bin: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory 

I searched, found and tested some possible solutions. I setted LD_LIBRARY_PATH in .bashrc and .bash_profile. In addition, I edited the /etc/ld.so.conf file, add “/usr/lib64/openmpi/” (without quotes). However, they failed.

 [tbernardes@Arch ~]$ mpicc -showme
gcc -pthread -Wl,-rpath -Wl,/usr/lib/openmpi -Wl,--enable-new-dtags -L/usr/lib/openmpi -lmpi
[tbernardes@Arch ~]$ mpic++ -showme
g++ -pthread -Wl,-rpath -Wl,/usr/lib/openmpi -Wl,--enable-new-dtags -L/usr/lib/openmpi -lmpi_cxx -lmpi
[tbernardes@Arch ~]$ echo $LD_LIBRARY_PATH
:/usr/lib/openmpi:/usr/lib64/openmpi

My references were:

Please, help me.
Best regards.

Offline

#2 2015-09-03 22:25:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,607

Re: scilab: error while loading shared libraries: libmpi.so.1

This is one of the many reasons the archlinuxfr sucks. Get rid of it and build things correctly from the AUR and your problem will go away.

Offline

#3 2015-09-03 23:22:40

tbernardes
Member
From: Brazil
Registered: 2015-08-10
Posts: 8

Re: scilab: error while loading shared libraries: libmpi.so.1

Well, there is two scilab in AUR: (i) aur/scilab 5.5.2-3 and (ii) aur/scilab-git 5.5.1.270.g5598095-1. However, I can not install them.

These versions have a dependency (java-freehep-vectorgraphics), which is not described in "Dependencies of Scilab 5.X ". I can only get this dependency when I use VPN (ZenMate) in chrome, to access the FTP by USA. I live in Brazil.

To overcome this problem, I tried to edit the PKGBUILD, as well as to compile java-freehep-vectorgraphics, but I failed.

Now, I am without options. I do not know what to do. hmm

Thanks.

Offline

#4 2015-09-03 23:45:57

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,607

Re: scilab: error while loading shared libraries: libmpi.so.1

Once you have the source downloaded, makepkg should find it and everything should work.

Offline

#5 2015-09-05 12:44:40

tbernardes
Member
From: Brazil
Registered: 2015-08-10
Posts: 8

Re: scilab: error while loading shared libraries: libmpi.so.1

I overcome the problem. I do not use makepkg, but I found a solution.

I installed the necessary dependencies, I downloaded the source files (Scilab and Prerequirements), and I compiled them. After, I did some symbolic links for lib files, which missing. To see these files, we can use:

$ ldd /usr/local/bin/scilab-bin

The scilab source folder contains them.

Thanks

Last edited by tbernardes (2015-09-05 12:48:17)

Offline

#6 2015-09-05 12:49:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: scilab: error while loading shared libraries: libmpi.so.1

Never ever run make install as root, and doing symlink farms are going to bit you in the ass later.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2015-09-05 15:32:36

tbernardes
Member
From: Brazil
Registered: 2015-08-10
Posts: 8

Re: scilab: error while loading shared libraries: libmpi.so.1

Mr.Elendig wrote:

Never ever run make install as root, and doing symlink farms are going to bit you in the ass later.

Thanks for you tips, Mr.Elendig.

In this case, I need to use "make install" as root, because it did not work without root. In addition, I register all my configuration and my changes that I do in my system, as well as the problems, which I solved; thinking in future issues.

Moreover, I undid all previous changes, because I can install from aur in my home network. Before, I used job network. There was some protect that prevented the installation, in my job network.

Now, scilab works perfectly.

Best regards.

Offline

#8 2015-09-05 16:26:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: scilab: error while loading shared libraries: libmpi.so.1

It works perfectly fine without root if you install to $HOME, if you want it installed system wide then use makepkg.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB