PDA

View Full Version : open rar files in Linux



jrev
06-15-2005, 05:39 AM
Hi all,
how can I unzip a file named name.rar with a Linux distro ?
thanks for your help

angor
06-15-2005, 08:28 AM
Install "unrar". Since you're posting on knoppix.net that will probably be
<code>
apt-get update
apt-get install unrar
</code>

Dave_Bechtel
06-16-2005, 05:44 AM
...And then of course, ' man unrar ' ;-)





Install "unrar". Since you're posting on knoppix.net that will probably be
<code>
apt-get update
apt-get install unrar
</code>

gnukish
06-25-2005, 05:02 AM
root@box:/mnt/hda12# cd files
root@box:/mnt/hda12/files# unrar e files.rar
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

How can i extract this rar file called files.rar ?
I have already converted rpm to deb and installed it.
My unrar is present in /usr/bin/unrar

Clarify ...

angor
06-27-2005, 07:01 AM
Try "apt-get install libstdc++6", as your (un)rar seems to need it. There may be further problems if your (originally RPM)
package detects other dependencies not met by your system. "ldd /usr/bin/unrar" will show you what libraries unrar expects
to find.

Dave_Bechtel
06-27-2005, 07:48 PM
' apt-get update '
' apt-cache search unrar ' == Reveals unrar and unrar-free.

--You'll have less problems with strange dependencies if you install "native" debs:
' apt-get install unrar '


Try "apt-get install libstdc++6", as your (un)rar seems to need it. There may be further problems if your (originally RPM)
package detects other dependencies not met by your system. "ldd /usr/bin/unrar" will show you what libraries unrar expects
to find.

gnukish
06-28-2005, 01:12 PM
root@box:/home/kish# ldd /usr/bin/unrar
libstdc++.so.6 => not found
libm.so.6 => /lib/libm.so.6 (0x40027000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40049000)
libc.so.6 => /lib/libc.so.6 (0x40053000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

What must I do now ??
Also gimme some links for downloading native deb packages.

angor
06-29-2005, 08:04 AM
> What must I do now ??
You only need to get the libstdc++.so.6 ... but:

> Also gimme some links for downloading native deb packages.
You may not have noticed, but Dave Bechtel already supplied the answer. Perhaps I should expand on that...
You have a file /etc/apt/sources that tells "apt-get update" where to look for new versions of packages. A consequent
"apt-get install <packagename>" will fetch that package, store it in /var/cache/apt/archives, and install it on your system.

To search for package(name)s, use "apt-cache search <string>", in this particular case <string>==unrar .

gnukish
06-29-2005, 12:47 PM
root@box:/# apt-get install unrar
Reading Package Lists... Done
Building Dependency Tree... Done
unrar is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@box:/# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@box:/#


Shown above is what I get for install command.



root@box:/$ apt-cache search unrar
unrar - Extract, test and view RAR archives


Shown above is what I get for apt-cache search <pkgname> command.

What now ?? Still the same error because I dont know the place to get libstdc++.so.6 :-s

ibrewale
06-29-2005, 08:23 PM
try:

unrar e <filename>

what happens?

ibrewale

Markus
06-29-2005, 08:57 PM
Try: apt-get install --reinstall unrar
or just: apt-get install libstdc++6

ibrewale
06-29-2005, 09:39 PM
Here is the link to the package on debian



http://packages.debian.org/stable/libs/libstdc++6

Like pointed out then,
apt-get install libstdc++6
should work.

Good luck

Markus
06-29-2005, 09:44 PM
Here is the link to the package on debian
http://packages.debian.org/stable/libs/libstdc++6
I think testing or unstable would be better, although it's a long time since I installed on knoppix.

ibrewale
06-29-2005, 10:14 PM
I think testing or unstable would be better, although it's a long time since I installed on knoppix.

Ok.

gnukish
06-30-2005, 06:28 AM
Thanks for the website, http://packages.debian.org/stable

Removing old libstdc++



root@box:/home/kish/misc_rpm# apt-get install libstdc++6
Reading Package Lists... Done
Building Dependency Tree... Done
libstdc++6 is already the newest version.
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
libstdc++6: Depends: gcc-3.4-base (>= 3.4.3-13) but it is not installable
Depends: libc6 (>= 2.3.2.ds1-21) but 2.3.2.ds1-16 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@box:/home/kish/misc_rpm# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following packages will be REMOVED:
libstdc++6
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 913kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 108704 files and directories currently installed.)
Removing libstdc++6 ...
ldconfig: file /usr/lib/libBLT.2.4.so.8.4 is truncated

ldconfig: File /usr/lib/i486/libcrypto.so.0.9.7 is too small, not checked.
root@box:/home/kish/misc_rpm#

Installing, libstdc++6.deb I see this,



root@box:/home/kish/misc_rpm# dpkg -i libstdc++6.deb
tar: ./shlibs: time stamp 2005-05-05 19:17:57 is 92708720 s in the future
tar: ./control: time stamp 2005-05-05 19:17:58 is 92708721 s in the future
tar: ./postinst: time stamp 2005-05-05 19:17:58 is 92708721 s in the future
tar: ./postrm: time stamp 2005-05-05 19:17:58 is 92708721 s in the future
tar: ./md5sums: time stamp 2005-05-05 19:17:59 is 92708722 s in the future
tar: .: time stamp 2005-05-05 19:17:59 is 92708722 s in the future
Selecting previously deselected package libstdc++6.
(Reading database ... 108699 files and directories currently installed.)
Unpacking libstdc++6 (from libstdc++6.deb) ...
dpkg: dependency problems prevent configuration of libstdc++6:
libstdc++6 depends on gcc-3.4-base (>= 3.4.3-13); however:
Package gcc-3.4-base is not installed.
libstdc++6 depends on libc6 (>= 2.3.2.ds1-21); however:
Version of libc6 on system is 2.3.2.ds1-16.
dpkg: error processing libstdc++6 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libstdc++6
root@box:/home/kish/misc_rpm#




root@box:/home/kish# apt-get install unrar
Reading Package Lists... Done
Building Dependency Tree... Done
unrar is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.



What should I do now ?? .... still error is coming,and problem is not solved .......



root@box:/home/kish/misc_rpm# cd /mnt/hda12/files
root@box:/mnt/hda12/files# unrar e files.rar
unrar: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
root@box:/mnt/hda12/files#


Please help :oops:

gnukish
07-02-2005, 09:28 PM
Problem solved using "apt-get install libstdc++6" , this command updated my existing database for quite sometime and finally the prompt appeared

I had success which is given below.



root@box:/mnt/hda12/files# apt-get install libstdc++6
Reading Package Lists... Done
Building Dependency Tree... Done
libstdc++6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 843 not upgraded.
root@box:/mnt/hda12/files#


Unrar is working well for me, thanks for all ur time/comments/help.

Regards

jrev
10-13-2005, 04:08 PM
Thank you for all these comments... 8)