[SOLVED] Problem in opening octave

Issues related to applications and software problems
rameshbabu
Posts: 7
Joined: 2015/08/21 11:06:11

[SOLVED] Problem in opening octave

Post by rameshbabu » 2015/08/21 11:21:07

Dear Members,

I am new to this forum.
Recently I have installed centos 6.6 through VMWare player to work on FSL. I have installed octave by using commands "yum install octave", "yum-builddep octave".

After installation I have rebooted my system and tried to open octave.
It is showing the following error message.

[fsl@fslvm6 ~]$ octave
octave: error while loading shared libraries: libhdf5.so.6: cannot open shared object file: No such file or directory
[fsl@fslvm6 ~]$


Please provide me a solution

Thanks in advance.
Ramesh

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Problem in opening octave

Post by avij » 2015/08/21 11:38:32

Please note that octave is not a CentOS program. It is provided by EPEL (for instance), and they have their own support venues.

I'm unsure why you ran yum-builddep octave. yum install octave should have been sufficient, if you have the EPEL repo enabled.

If you have recompiled your own version of octave, remove it and reinstall the version from EPEL. It should work fine.

rameshbabu
Posts: 7
Joined: 2015/08/21 11:06:11

Re: Problem in opening octave

Post by rameshbabu » 2015/08/22 16:14:52

Dear Avij,

I have epel repository installed in my system. While installing octave, some message about the epel repository was displayed and then octave was installed. I tried to open the octave by typing "octave" in the terminal window, it was not opening. I though it might have not installed properly. Then I gave the command "yum-builddep octave". This time also, I hope, it was installed through epel repository. Still I am facing the same problem. I could not able to open the octave.

What should I do to open octave and octave-gui?

Your help will be appreciated.
Ramesh

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Problem in opening octave

Post by avij » 2015/08/31 17:59:04

I just tried this myself, and octave installed nicely from EPEL and I was able to start octave afterwards. Which octave package you have installed? rpm -q octave

rameshbabu
Posts: 7
Joined: 2015/08/21 11:06:11

Re: Problem in opening octave

Post by rameshbabu » 2015/09/01 04:05:16

Dear Avij,

Thank you very much for your reply.

[fsl@fslvm6 ~]$ rpm -q octave
octave-3.4.3-1.el6.x86_64
[fsl@fslvm6 ~]$ octave
octave: error while loading shared libraries: libhdf5.so.6: cannot open shared object file: No such file or directory
[fsl@fslvm6 ~]$


I think I need to install libhdf5 separately. If so please tell me the command line.

My operating system: CentOS6.7, 64 bit. Installed through VMware player.

Thanks
Ramesh

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Problem in opening octave

Post by avij » 2015/09/01 06:00:34

The library is included in the hdf5 package, but it should have been installed automatically when you installed octave. You can try yum install hdf5 in any case to see what happens. If you already have hdf5 installed, please tell the exact version: rpm -q hdf5

rameshbabu
Posts: 7
Joined: 2015/08/21 11:06:11

Re: Problem in opening octave

Post by rameshbabu » 2015/09/02 04:20:30

Dear Avij,
Thank you very much for your reply. I have checked the hdf5 version.

[fsl@fslvm6 ~]$ rpm -q hdf5
hdf5-1.8.7-1.el6.rf.x86_64
[fsl@fslvm6 ~]$

Is it the latest version? Should I install it again?
Need your suggestion

Thanks
Ramesh

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Problem in opening octave

Post by avij » 2015/09/02 06:07:39

Ah, there we have the problem. You are using RPMForge's version of hdf5 and not the EPEL version. This incompatibility is one of the reasons why we don't recommend using RPMForge. Another reason is that the packages in RPMForge seem to be unmaintained nowadays. The latest update to any of their EL6 packages was at least a year ago.

I would recommend removing the repository configuration with yum remove rpmforge-release. If this does not remove the rpmforge-release package, find the repository config file from /etc/yum.repos.d and rm it. It may be named rpmforge.repo.

Once this is done, yum distro-sync hdf5 should finally fix the problem.

rameshbabu
Posts: 7
Joined: 2015/08/21 11:06:11

Re: Problem in opening octave

Post by rameshbabu » 2015/09/02 09:55:45

Dear Avij,

Thank you. I have removed rpm repository by using the command as you mentioned.

[root@fslvm6 fsl]# yum remove rpmforge-release
...
....
Removed: (last line)
rpmforge-release.x86_64 0:0.5.3-1.el6.rf

Complete!


Then I tried to fix hdf5, but it was showing following error messages.

[root@fslvm6 fsl]# yum distro-sync hdf5
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Distribution Synchronization Process
Loading mirror speeds from cached hostfile
* epel: epel.mirror.srv.co.ge
* extras: centos-hcm.viettelidc.com.vn
* fasttrack: centos-hcm.viettelidc.com.vn
* updates: centos-hcm.viettelidc.com.vn
Resolving Dependencies
--> Running transaction check
---> Package hdf5.x86_64 0:1.8.5.patch1-9.el6 will be a downgrade
---> Package hdf5.x86_64 0:1.8.7-1.el6.rf will be erased
--> Finished Dependency Resolution
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5_cpp.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5_cpp.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5_hl_cpp.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5_hl_cpp.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5_hl.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5_hl.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: hdf5 = 1.8.7-1.el6.rf
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
hdf5 = 1.8.7-1.el6.rf
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
hdf5 = 1.8.5.patch1-9.el6
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5hl_fortran.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5hl_fortran.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
Error: Package: hdf5-devel-1.8.7-1.el6.rf.x86_64 (@rpmforge)
Requires: libhdf5_fortran.so.7()(64bit)
Removing: hdf5-1.8.7-1.el6.rf.x86_64 (@rpmforge)
libhdf5_fortran.so.7()(64bit)
Downgraded By: hdf5-1.8.5.patch1-9.el6.x86_64 (epel)
Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@fslvm6 fsl]# octave
octave: error while loading shared libraries: libhdf5.so.6: cannot open shared object file: No such file or directory
[root@fslvm6 fsl]# exit
exit
[fsl@fslvm6 ~]$ octave
octave: error while loading shared libraries: libhdf5.so.6: cannot open shared object file: No such file or directory
[fsl@fslvm6 ~]$


Should I install octave again?


Thanks
Ramesh

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Problem in opening octave

Post by avij » 2015/09/02 17:31:10

I believe these issues are caused by your previous yum-builddep command. This may have installed hdf5-devel from rpmforge. You do not need that package for running octave. Try yum remove hdf5-devel, then yum distro-sync hdf5 again.

Post Reply