LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 04-07-2009, 09:45 AM   #1
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Rep: Reputation: 16
how to install unrar in opensolaris 5.11


hi can anybody tell me how can i install unrar in opensolaris
 
Old 04-07-2009, 12:31 PM   #2
tschima
Member
 
Registered: Apr 2006
Location: Arizona
Distribution: LinuxMint, NomadBSD, OtherBSD
Posts: 109

Rep: Reputation: 15
Goto http://www.sunfreeware.com/, find and download the file unrar-3.68-sol10-x86-local.gz. To find the file, on the right site of your browser, click on the "Everything new or old" and then click on i386 directory in the middle of your browser, and finally on 5.11. Then gunzip the file.

I'm doing this from Windows, so I can't try it myself, if anyone can jump in here and make sure I'm correct.

Now you should have a file named unrar-3.68-sol10-x86-local. I think this is a package file, so you just pkgadd -d unrar-3.68-sol10-x86-local.

T
 
Old 04-08-2009, 02:50 AM   #3
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install unrar in opensolaris 5.11

thanks for your reply
i followed your steps ...
after adding package i got some messages...
Code:
srinivas@opensolaris:~$ sudo pkgadd -d Desktop/unrar-3.68-sol10-x86-local 

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Password: 

The following packages are available:
  1  SMCunrar     unrar
                  (x86) 3.68

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 

Processing package instance <SMCunrar> from </export/home/srinivas/Desktop/unrar-3.68-sol10-x86-local>

unrar(x86) 3.68

This appears to be an attempt to install the same architecture and
version of a package which is already installed.  This installation
will attempt to overwrite this package.

Alexander Roshal
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
   4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

Installing unrar as <SMCunrar>

## Installing part 1 of 1.
[ verifying class <none> ]

Installation of <SMCunrar> was successful.
srinivas@opensolaris:~$ unrar
bash: unrar: command not found
so means tht i installed properly...
but when i am tyoing unrar in command line ..it is saying command not found..

please tell me what i have to do..
 
Old 04-08-2009, 10:26 AM   #4
tschima
Member
 
Registered: Apr 2006
Location: Arizona
Distribution: LinuxMint, NomadBSD, OtherBSD
Posts: 109

Rep: Reputation: 15
Well, first of all, the package was already installed, but you reinstalled it. I don't think that causes problems, but I don't really know that much about Unix yet. The reason that you got that message "bash: unrar: command not found", is because either the command in Solaris is NOT unrar, but it may be simply rar, or more than likely, it's because the command is not in your path. If you type echo $PATH at the command line, OS will show you the path that is set. Since I am new to Unix, and even newer than that to Solaris, I don't know if I can help you with changing the path. If I remember correctly, you edit the .profile file in your home directory. Someone else can step in here and help anytime, thanks.

Once you add the correct path variable to your path, the command should be available. There's a script provided by jlligre that will list directories which contain programs that aren't necessarily in your current path. It's here:
http://www.linuxquestions.org/questi...prompt-639248/
I'm sure that the unrar/rar command is in one of those directories.

You can copy and paste the code and save as whatever name you want. Then you need to make the script file executable. The only way I know to do that is with the shell program Midnight Commander (command is mc) which you can search for and install with the GUI package manager that comes with Open Solaris. (This is actually the best way to install programs in Open Solaris, and the way you should have installed unrar). If you haven't used mc, move the cursor onto the file you just saved with the code in it, press F9, then 'f' for the file menu, and 'h' for cHmod, and then check the executable box. This gives you the name of the Unix command, chmod, which you can read the man page on and try to figure it out if you like. If you use mc to make it executable, mc shows you that it is an executable by changing the color of the file, and adding an * to the end or beginning (I don't pay that close of attention to it, and I'm in Windows now). Once the file is executable in Unix, it doesn't really mean you can actually run it YET (at least not like you may be used to in DOS/Windows). Then the program/script must be in one of the directories in the $PATH or you have to tell Unix (OpenSolaris in this case) where it is. If you are in the directory where the program is, you can execute it by adding a dot and slash to the beginning of the program like this: ./myprogram


You navigate to different directories in mc by moving the cursor onto the directory and pressing enter. If you want to go up dir, place the cursor on the .. dir at the top and press enter. The tab key moves the cursor to the other window in mc. F10 quits. Sorry I can't help more, I'm like the blind leading the blind because I'm still trying to learn Open Solaris too. BTW, mc will let you edit your .profile file, just select the file and press F4 to edit. After changing, press F2 to save, and quitting anything in mc is always F10.


T
 
Old 04-10-2009, 06:29 AM   #5
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install unrar in opensolaris 5.11

hi thanks for your information...
i copied that code and saved to a file name called unrarscript
when i am executing that file i got the below output
Code:
srinivas@opensolaris:~$ ./unrarscript 
PATH=/usr/bin:/sbin:/usr/xpg4/bin:/usr/X/bin:/usr/X11R6/bin:/usr/X11/bin:/usr/sfw/bin:/usr/sadm/bin:/usr/proc/bin:/usr/perl5/bin:/usr/openwin/bin:/usr/netbeans/bin:/usr/mysql/bin:/usr/local/bin:/usr/java/bin:/usr/has/bin:/usr/gnu/bin:/usr/ddu/bin:/usr/ccs/bin:/usr/appserver/bin:/usr/sbin:/sbin:/usr/X/sfw/bin:/usr/X11/sfw/bin:/usr/X11R6/sfw/bin:/usr/spool/lp/bin:/usr/sfw/i386-pc-solaris2.11/bin:/usr/sadm/sysadm/bin:/usr/sadm/install/bin:/usr/sadm/admin/bin:/usr/perl5/5.8.4/bin:/usr/openwin/sfw/bin:/usr/netbeans/cnd2/bin:/usr/mysql/5.0/bin:/usr/lib/xen/bin:/usr/lib/lp/bin:/usr/jdk/latest/bin:/usr/jdk/jdk1.6.0_10/bin:/usr/java/jre/bin:/usr/demo/jds/bin:/usr/apr-util/1.3/bin:/usr/apr/1.3/bin:/opt/SUNWjavadb/bin:/opt/SunStudioExpress/bin:/opt/netbeans-6.5ss/bin:/opt/mplayer/bin:/opt/jdk1.6.0_13/bin:/usr/ucb:
MANPATH=/usr/X/man:/usr/X11R6/man:/usr/X11/man:/usr/share/man:/usr/sfw/man:/usr/perl5/man:/usr/openwin/man:/usr/mysql/man:/usr/local/man:/usr/java/man:/usr/has/man:/usr/X/share/man:/usr/X11/share/man:/usr/X11R6/share/man:/usr/sfw/share/man:/usr/openwin/share/man:/usr/local/share/man:/usr/gnu/share/man:/usr/local/share/man:/usr/local/man:/opt/mplayer/share/man:/opt/mplayer--enable-gui/share/man:/opt/SunStudioExpress/man:/opt/jdk1.6.0_13/man:
srinivas@opensolaris:~$
so after this one what i have do ...can you please tell me...
should i have to add this code to .bashrc or i need to do anything more.
 
Old 04-10-2009, 08:14 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What you might want to do is:

Code:
$(unrarscript)
type -a unrar
And see what shows up. I would expect /usr/local/bin/unrar for sunfreeware stuff.

As PATH components order matters when variants of a command do exist, I wouldn't recommend using my script as is. OpenSolaris put /usr/gnu/bin first in the PATH to ease Gnu/Linux users but my script orders directories alphabetically which may lead to unexpected command being used.
 
Old 04-15-2009, 02:08 AM   #7
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install unrar in opensolaris 5.11

thanks for your reply...
i have run command what you said..but..in the given output no where i found unrar...
please help me...
this is going to be very tough..it seems to be...in earlier i have used rhel,fedora..but i never spend this much time for configuring a small packages to works..
please help me out
 
Old 04-15-2009, 05:59 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What says:
Code:
pkgchk -v SMCunrar
?
 
Old 04-15-2009, 10:46 AM   #9
srinivasmiriyalu
Member
 
Registered: Mar 2009
Location: Banglore-India
Distribution: RHEL5.2,Fedora9&11,Opensolaris 5.11,SXDE 1/08,CentOS-5.3,Ubuntu 8.10
Posts: 149

Original Poster
Rep: Reputation: 16
how to install unrar in opensolaris 5.11

srinivas@error:~$ pkgchk -v SMCunrar
NOTE: Couldn't lock the package database.
/usr/local/bin
/usr/local/bin/unrar
/usr/local/doc
/usr/local/doc/unrar
 
Old 04-15-2009, 04:08 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm missing exactly what is the problem you still have.
I already gave you the command path and the previous command your run just confirm it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can not install unrar-free LaoLiulaoliu Debian 3 05-03-2007 11:20 PM
Can't Install urpmi unrar dolphans1 Mandriva 3 09-25-2005 11:05 PM
How do I install 'unrar' in RHEL4/CentOS4.1 aratis Red Hat 3 07-20-2005 02:14 AM
unRAR install nightmare smudge|lala Linux - Software 5 01-26-2005 11:25 AM
Cant install unrar... chrisford553 Linux - Software 3 12-11-2004 09:41 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration