I'm using Ubuntu 8.04 and rkward build 2373.
I can't start rkward anymore (used it 4 days ago), when I try to start it from the command line I get the following error:
/usr/local/bin/rkward.bin: error while loading shared libraries: libRlapack.so: cannot open shared object file: No such file or directory
I've found several references to this error in the Debian bug tracker but they are at least 3-6 months old, and there doesn't appear to be anything I can do to fix it. I'm not sure what to do.
I wanted to 'reinstall' R in Synaptic but that option was grayed out so I 'removed' and 'installed' instead.
I tried to recompile rkward but get the error: /usr/bin/ld: cannot find -lRlapack
I install R from sources of aug 25 2008 - still the same result
Tried to install rkward through synaptics which is 0.5.0b-2hardy0 (don't know which build that translates into) - still the same result.
Perhaps someone knows what is wrong.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After a couple of hours poking around I found the solution. I probably should have known from the start as I have seen this or related bugs turn up at regular intervals through out my 8 year long acquaintance with R.
Turns out rkward missed a couple of libraries. The libraries are present on my system they are just not in the path and they are not where other components (ie. rkward) expect them to be.
The solution is to either make a symbolic link to them in the path or copying them into the path (I copied them).
Why does this happen so often with various libraries? Probably because R puts its files in different places on different distros (Windows included) and apparently this may change slightly from version to version???
Anyway if some program can't find parts of R, go hunting for the missing part on your machine and copy it into your path or create a link from your path to it.
Hope this may help others.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for you answer, you were right
Here is how I solved my problem:
the library is located in
/usr/lib/R/modules
but is named lapack.so
next I copy the file in the same folder with the right name
<sudo cp lapack.so libRlapack.so>
make a link of this file and move to
/usr/lib
voila it is working
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for a wonderful GUI of R..Here is my problem: After I upgraded ( I do not remember wich packages) the app is not working anymore. I reinstalled, downgraded the app without any success.
This is the message after launched in a console:
/usr/bin/rkward.bin: error while loading shared libraries: libRlapack.so: cannot open shared object file: No such file or directory
(I looked for the file in my file system and home and it is not present)
Thank to you too.
I'm just installing on a new laptop and ran into that very same issue, couldn't even install - your suggestion solved it. I only wonder why this keeps happening. It's a bit sad as it throws off people so easily.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
As far as I remember libRlapack.so was not available at the official debs of Debian and Ubuntu. I say as far as I remember because I compile R for long time now.
This probably will have libRlapack.so, although not tested.
the second option is to compile R yourself. I do not remember again surely but one of the libraries in the lib directory of R was missing the deb files. So I made a small script to install R correctly:
#!/bin/bash
./configure --enable-R-shlib --enable-mbcs && make
Untar the file, if you want rename it to R, and run the script in the R fodler.
This way you can have a topically installed R. In order to have libRlapack.so and tk you have to have installed the libraries. The ./configure will help you see what is missing. I see that I have installed libblas3gf and and liblapack3gf. For Tk you need tk-dev, tcl-dev, for java support sun-java6-jdk. The
./configure
script will warn you with what is missing anyhow. However if it is not critical it will compile and install without it.
After running the above script somewhere in your home e.g. Projects, you have two options. One to make a shortcut to the /usr/bin:
cd /usr/bin
sudo ln -s ~/Projects/R/bin/R ./
This way R is can be run from there using the R command as usual.
Otherwise you can make
sudo make install
and install to your system. The first way is more handy at upgrading.
I hope something of the above can help you
Kind Regards,
Ilias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Seems however that you didn't try at all any of my contributions, but on the contrary you are messing around threads as you mess your repositories. Probably, you have not read the ubuntu's or other's linux distribution notes. Somewhere there it says that software provided as is. And in all the ubuntu forums there is a big warning, don't mix repositories.
So ubuntu offers the latest stable R and RKWard distribution up to the date of its official release. If these do not work this is a bug.
However, if you want to keep your system more up-to-date with R and RKWard or whatever else, you take your own risk and add more repos or compile them yourself. Either way it is good to remove the R or RKWard distribution before doing that. It is good to ask for help, but it is not so good to blame others for this.
Finally, there is a mailing list for debian distributions called R-SIG-Debian, that they have more knowledge on the issues and the cran repos.
Thank you for your interest in RKWard,
Kind Regards,
Ilias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using Ubuntu 8.04 and rkward build 2373.
I can't start rkward anymore (used it 4 days ago), when I try to start it from the command line I get the following error:
/usr/local/bin/rkward.bin: error while loading shared libraries: libRlapack.so: cannot open shared object file: No such file or directory
I've found several references to this error in the Debian bug tracker but they are at least 3-6 months old, and there doesn't appear to be anything I can do to fix it. I'm not sure what to do.
I wanted to 'reinstall' R in Synaptic but that option was grayed out so I 'removed' and 'installed' instead.
I tried to recompile rkward but get the error: /usr/bin/ld: cannot find -lRlapack
I install R from sources of aug 25 2008 - still the same result
Tried to install rkward through synaptics which is 0.5.0b-2hardy0 (don't know which build that translates into) - still the same result.
Perhaps someone knows what is wrong.
After a couple of hours poking around I found the solution. I probably should have known from the start as I have seen this or related bugs turn up at regular intervals through out my 8 year long acquaintance with R.
Turns out rkward missed a couple of libraries. The libraries are present on my system they are just not in the path and they are not where other components (ie. rkward) expect them to be.
The solution is to either make a symbolic link to them in the path or copying them into the path (I copied them).
Why does this happen so often with various libraries? Probably because R puts its files in different places on different distros (Windows included) and apparently this may change slightly from version to version???
Anyway if some program can't find parts of R, go hunting for the missing part on your machine and copy it into your path or create a link from your path to it.
Hope this may help others.
Thanks for you answer, you were right
Here is how I solved my problem:
the library is located in
/usr/lib/R/modules
but is named lapack.so
next I copy the file in the same folder with the right name
<sudo cp lapack.so libRlapack.so>
make a link of this file and move to
/usr/lib
voila it is working
thanks
Thanks for a wonderful GUI of R..Here is my problem: After I upgraded ( I do not remember wich packages) the app is not working anymore. I reinstalled, downgraded the app without any success.
This is the message after launched in a console:
/usr/bin/rkward.bin: error while loading shared libraries: libRlapack.so: cannot open shared object file: No such file or directory
(I looked for the file in my file system and home and it is not present)
Platform Ubuntu Hardy
rkward_0.4.9-2ubuntu0.1_i386.deb 02-May-2008 03:04 870K
rkward_0.5.0b-2_i386.deb 14-Jun-2008 10:05 927K
Thanks
Thank to you too.
I'm just installing on a new laptop and ran into that very same issue, couldn't even install - your suggestion solved it. I only wonder why this keeps happening. It's a bit sad as it throws off people so easily.
Dear fsando & studentz,
As far as I remember libRlapack.so was not available at the official debs of Debian and Ubuntu. I say as far as I remember because I compile R for long time now.
One option is to add
deb http://my.favorite.cran.mirror/bin/linux/ubuntu hardy/
where at my.favorite.cran.mirror add you favorite and closer mirror e.g.
deb http://cran.r-project.org/bin/linux/ubuntu hardy/
This probably will have libRlapack.so, although not tested.
the second option is to compile R yourself. I do not remember again surely but one of the libraries in the lib directory of R was missing the deb files. So I made a small script to install R correctly:
#!/bin/bash
./configure --enable-R-shlib --enable-mbcs && make
Untar the file, if you want rename it to R, and run the script in the R fodler.
This way you can have a topically installed R. In order to have libRlapack.so and tk you have to have installed the libraries. The ./configure will help you see what is missing. I see that I have installed libblas3gf and and liblapack3gf. For Tk you need tk-dev, tcl-dev, for java support sun-java6-jdk. The
./configure
script will warn you with what is missing anyhow. However if it is not critical it will compile and install without it.
After running the above script somewhere in your home e.g. Projects, you have two options. One to make a shortcut to the /usr/bin:
cd /usr/bin
sudo ln -s ~/Projects/R/bin/R ./
This way R is can be run from there using the R command as usual.
Otherwise you can make
sudo make install
and install to your system. The first way is more handy at upgrading.
I hope something of the above can help you
Kind Regards,
Ilias
I add some comments in Ubuntu launchpad, here is the tread
https://answers.launchpad.net/ubuntu/+source/rkward/+question/44070
Thanks nono 231 for your contribution.
Dear studentz,
Seems however that you didn't try at all any of my contributions, but on the contrary you are messing around threads as you mess your repositories. Probably, you have not read the ubuntu's or other's linux distribution notes. Somewhere there it says that software provided as is. And in all the ubuntu forums there is a big warning, don't mix repositories.
So ubuntu offers the latest stable R and RKWard distribution up to the date of its official release. If these do not work this is a bug.
However, if you want to keep your system more up-to-date with R and RKWard or whatever else, you take your own risk and add more repos or compile them yourself. Either way it is good to remove the R or RKWard distribution before doing that. It is good to ask for help, but it is not so good to blame others for this.
Finally, there is a mailing list for debian distributions called R-SIG-Debian, that they have more knowledge on the issues and the cran repos.
Thank you for your interest in RKWard,
Kind Regards,
Ilias
Sorry, a small correction.
One option is to add to your repositories the
deb http://my.favorite.cran.mirror/bin/linux/ubuntu hardy/
where at my.favorite.cran.mirror add you favorite and closer mirror e.g.
deb http://cran.r-project.org/bin/linux/ubuntu hardy/
This probably will have libRlapack.so, although not tested.
Regards,
Ilias