OCTAVE cannot read data from lib

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
pepsis
Posts: 5
Joined: Tue 04 Feb 2014, 09:37

OCTAVE cannot read data from lib

#1 Post by pepsis »

Ok, i have to post new topic on this.
I run puppy lucid 528 from USB and when,

I loaded octave sfs: /mnt/home/octave-glpk-3.2.3-i486_5.29.5.sfs

and when i type octave in terminal i get this:

octave: error while loading shared libraries: /usr/local/lib/octave-3.2.3/liboctinterp.so: cannot read file data: Input/output error

I am new to puppy. But i tried finding solution to this, and there is not solution for my version of Puppy. There are a lot of solutions for Ubuntu or other distros, but not for pup.

Does any one knows how to solve this???

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

:D Pepsis, Welcome to Pup mate.

Hmm, that IO error.. Can you open a terminal and tell us if there's output from this command:

Code: Select all

du -h .Trash
Then take a look @ the results of this cmd ("L"dd) and note the not founds..

Code: Select all

ldd /usr/bin/octave
Saying this is where she resides.

==

If you've got a link for the pkg(?), please..

pepsis
Posts: 5
Joined: Tue 04 Feb 2014, 09:37

#3 Post by pepsis »

Semme wrote::D Pepsis, Welcome to Pup mate.

Hmm, that IO error.. Can you open a terminal and tell us if there's output from this command:

Code: Select all

du -h .Trash
Then take a look @ the results of this cmd ("L"dd) and note the not founds..

Code: Select all

ldd /usr/bin/octave
Saying this is where she resides.

==

If you've got a link for the pkg(?), please..


Yes this is the download link, the one which you posted. I forgot to provide it.


After

Code: Select all

du -h .Trash
i get

Code: Select all

4.0K	.Trash

And after

Code: Select all

ldd /usr/bin/octave
i get

Code: Select all

ldd: /usr/bin/octave: No such file or directory
It seems like there is no OCTAVE in the first place? Or it si just not where it was suppose to be?

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

That "du" works >> good.

Ah, it's: ldd /usr/local/bin/octave

.. and mine works.

Maybe we go back to that I/O error.

What's your disk setup like?

Maybe you tell me where things are?

The output here too: fdisk -l

And where this sfs is..

pepsis
Posts: 5
Joined: Tue 04 Feb 2014, 09:37

#5 Post by pepsis »

Semme wrote:That "du" works >> good.

Ah, it's: ldd /usr/local/bin/octave

.. and mine works.

Maybe we go back to that I/O error.

What's your disk setup like?

Maybe you tell me where things are?

The output here too: fdisk -l

And where this sfs is..


sh-4.1# ldd /usr/local/bin/octave
/usr/local/bin/octave: error while loading shared libraries: /usr/local/lib/octave-3.2.3/liboctinterp.so: cannot read file data: Input/output error



fdisk :

Disk /dev/sda: 8054 MB, 8054112256 bytes
256 heads, 29 sectors/track, 2118 cylinders
Units = cylinders of 7424 * 512 = 3801088 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2119 7865332 12 Compaq diagnostics



And sfs is in that mnt/home directory

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

OK, it's a frugal install.

Ah, from usb..

It's file system and the fs type you saved as?

pepsis
Posts: 5
Joined: Tue 04 Feb 2014, 09:37

#7 Post by pepsis »

Semme wrote:OK, it's a frugal install.

Ah, from usb..

It's file system and the fs type you saved as?
I'm not sure what are you asking me.

Yes it is from USB, and it is frugal install. Although i am not sure what it means exactly. As i said, i'm new to all of this. I used to use ubuntu, back then whan i had HDD, but now i am forced to use puppy. and this way it is installed worked (and still is) fine for me, until i used it for comm, office, and browsing. But then i saw there is in fact very powerful software for puppy, and i decided to more explore this area. I expected difficulties, though.

It would help me if you told me why do ask all these q's since all solutions for other distros didn't include all this info.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

:oops: Pardon me, was maybe getting ahead of myself.

The questions came cause I know you have that file.. Pfind should confirm. What concerned me was the I/O error, suggesting something wrong with the drive or file system in question.

Tell us, when you saved to usb, was it to the whole drive or as a save file?

Do you remember if it was saved as ext2 or 3? The: mount cmd should confirm..

Is this a generic flash drive or something like a SanDisk?

Do you have 528 as a bootable cdrom, or how is it Pup was installed in the first place?

Again, use Pfind and you'll see the file in question resides on your system with the sfs loaded..

Ideally, and short of hw, you'd wanna run an fsck (file-system-check) on the unmounted drive.

The above, or if there's an alternate usb slot >> switch.

pepsis
Posts: 5
Joined: Tue 04 Feb 2014, 09:37

#9 Post by pepsis »

Semme wrote::oops: Pardon me, was maybe getting ahead of myself.

The questions came cause I know you have that file.. Pfind should confirm. What concerned me was the I/O error, suggesting something wrong with the drive or file system in question.
Nevermind. :)I just want to know why are you asking me all this, because i want know, and remember.... i just need to know WHY for everything :) Something like Smith from matrix. Purpose, WHY. Those are my life Qs :)
Tell us, when you saved to usb, was it to the whole drive or as a save file?
I saved it as save.2fs file. I thought it was the only way to save it. And i installed it from windows, frome daemon tool ISO mounted, and saved complete.
Do you remember if it was saved as ext2 or 3? The: mount cmd should confirm..
No it is not any of ext file systems. It is fat, since i installed it like save file
Is this a generic flash drive or something like a SanDisk?
Silicon power USB stick, 8GB
Do you have 528 as a bootable cdrom, or how is it Pup was installed in the first place?
I answered that. Through daemon ISO.

Again, use Pfind and you'll see the file in question resides on your system with the sfs loaded..
Why am i gettin I/O error then? This is what is bugging me too. Evidently, the file is there.
Ideally, and short of hw, you'd wanna run an fsck (file-system-check) on the unmounted drive.
I didn't get this one. run FSCK and look for what? Unmounted drive? What do you mean by this. How can i check drive that is unmounted? Did i get this wrong?
The above, or if there's an alternate usb slot >> switch.
There are no other mounted drives at instalation time fo OCTAVA

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

Well, there's either a problem with the physical structure of the drive or file system corruption somewhere.

Maybe your dwnld was bad? Mine works.

You can confirm by rt-clking the file and choosing MD5sum check.

Code: Select all

f5afe98a8a8d254b3a4e8209f374ce74
If they're the same, I'd first run a chkdsk on the drive, because I can't tell where the problem is.

If that doesn't straighten the issue, then an fsck.

To do this, you'd open a terminal on your bootdisk:

Code: Select all

e2fsck -f -n -v /dev/sda1
The switches >> f=force check, n=read-only check, v=verbose.

If everything returns OK, run the same, swapping a -p for the -n.

User avatar
Moose On The Loose
Posts: 965
Joined: Thu 24 Feb 2011, 14:54

Re: OCTAVE cannot read data from lib

#11 Post by Moose On The Loose »

pepsis wrote:Ok, i have to post new topic on this.
I run puppy lucid 528 from USB and when,

I loaded octave sfs: /mnt/home/octave-glpk-3.2.3-i486_5.29.5.sfs

and when i type octave in terminal i get this:

octave: error while loading shared libraries: /usr/local/lib/octave-3.2.3/liboctinterp.so: cannot read file data: Input/output error
Let me suggest an "is it plugged in sort of thing"
On may system, if I type:

Code: Select all

sh-4.1# ls -l /usr/local/lib/octave-3.2.3/liboctinterp.so
lrwxrwxrwx 1 root root 21 2013-10-27 07:58 /usr/local/lib/octave-3.2.3/liboctinterp.so -> liboctinterp.so.3.2.3
This means that the file is really a link to the one with the ".3.2.3" on the end.

Code: Select all

sh-4.1# ls -l /usr/local/lib/octave-3.2.3/liboctinterp.so.3.2.3
-rwxr-xr-x 1 root root 15025153 2009-11-30 04:19 /usr/local/lib/octave-3.2.3/liboctinterp.so.3.2.3
This means that at least the file system thinks the target of the link is there.

There can be some ways this in not true on your system most involve there being something with the same name already on the system and stuff like that that seem unlikely but it could be true.

BTW: You can save typing if you know about using the middle button. Highlight text in here and then go over to the terminal and do the middle click.

Post Reply