Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Installing winrar?

  • 25-05-2004 2:15pm
    #1
    Registered Users, Registered Users 2 Posts: 7,496 ✭✭✭


    I've downloaded the tar.gz file for winrar but am not too sure how to install it onto my linux system. when i open the file it shows a bunch of other files:


    Makefile
    license.txt
    rar.txt
    rarfiles.lst
    unrar
    default.sfx
    order.htm
    rar_faq.txt
    readme.txt
    whatsnew.txt
    file_id.diz rar
    rar_static
    technote.txt

    how do i go about installing/compiling it? its not a very intuitive setup.

    EDIT:
    ok i typed "make" inside the unpacked tar.gz folder in the command line and got this:

    make
    cp rar unrar /usr/local/bin
    cp: cannot create regular file `/usr/local/bin/rar': Permission denied
    cp: cannot create regular file `/usr/local/bin/unrar': Permission denied
    make: *** [install] Error 1

    is there anyway to install this to may locally (ie not on the network)? for instance i know that the hard drive for this computer is \tmp.


Comments

  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


    Its trying to copy the files to /usr/local/bin but it has no permission to write to that directory.

    Log in as root and run make and it should copy them into the correct directory.

    Or else, depending on the file permissions, you can just execute ./unrar from the directory to run unrar.


  • Moderators, Arts Moderators Posts: 35,731 Mod ✭✭✭✭pickarooney


    You'll probably need to ask the sysadmin to install it. Did you chek to see if unrar was already installed somewhere on the server?


  • Registered Users, Registered Users 2 Posts: 7,496 ✭✭✭quarryman


    Originally posted by lynchie

    Log in as root and run make and it should copy them into the correct directory.

    ain't got root access. thought there might be a way around it since i remember being able to install mozilla at one stage locally.
    Or else, depending on the file permissions, you can just execute ./unrar from the directory to run unrar.

    how do i do that? tried typing unrar in the console but no joy. "unrar: command not found"


  • Closed Accounts Posts: 6,718 ✭✭✭SkepticOne


    Are you logged in as root? If not, this is your problem.

    The "/tmp" directory is normally only used by programs for storing temporary files. It is not used for installing packages.


  • Registered Users, Registered Users 2 Posts: 7,496 ✭✭✭quarryman


    Originally posted by SkepticOne
    Are you logged in as root? If not, this is your problem.

    The "/tmp" directory is normally only used by programs for storing temporary files. It is not used for installing packages.

    no not in as root.

    i think the \tmp folder is actually the hard drive. was informed by the admin that's what he called it. not a temp directory as most would think.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    Originally posted by quarryman
    I've downloaded the tar.gz file for winrar

    Its "rar" not winrar. Winrar is the windows version or rar.
    Makefile
    license.txt
    rar.txt
    rarfiles.lst
    unrar
    default.sfx
    order.htm
    rar_faq.txt
    readme.txt
    whatsnew.txt
    file_id.diz rar
    rar_static
    technote.txt

    unrar and rar_static are the two "executable" files you would be used to in windows.
    [/B]how do i go about installing/compiling it? its not a very intuitive setup.[/B]

    You have a few options:

    - you could add an alias for rar and unrar into your shell rc file pointing to the untarred directory.

    - you could add the untarred directory to your path permanently

    - you could make a symlink to somewhere in yoru existing path to the "executable" files.

    - you could copy necessary files to somewhere in your path (which is what make was trying to do)

    - (you may also need to change permissions on the files so that you can execute them)
    EDIT:
    ok i typed "make" inside the unpacked tar.gz folder in the command line and got this:


    make
    cp rar unrar /usr/local/bin
    cp: cannot create regular file `/usr/local/bin/rar': Permission denied
    cp: cannot create regular file `/usr/local/bin/unrar': Permission denied
    make: *** [install] Error 1

    is there anyway to install this to may locally (ie not on the network)?

    Try above mentioned options. Ask if you need more help. We may need to know what shell you using.
    for instance i know that the hard drive for this computer is \tmp.

    /tmp perhaps. Irrelevant in any case.


  • Registered Users, Registered Users 2 Posts: 2,013 ✭✭✭lynchie


    Originally posted by quarryman
    ain't got root access. thought there might be a way around it since i remember being able to install mozilla at one stage locally.



    how do i do that? tried typing unrar in the console but no joy. "unrar: command not found"

    Did you type unrar or ./unrar - They are completely different... the first will only search the PATH envinorment entry the second says run unrar in this directory.

    Make sure you are in the same directory as the list of files above to run it.

    Also check that it has the +x bit (ls -al) If it aint set just 'chmod +x unrar' it


  • Registered Users, Registered Users 2 Posts: 4,751 ✭✭✭Ste-


    As a last alternative, winrar works great under wine.


  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    Maybe I made it too complicated last time.

    1. cd into the directory currenttly containing rar_static
    2. copy rar_static to your home directory "cp rar_static ~/"
    3. cd back to your home directory "cd ~/"
    4. rename it for easier to remember access "mv rar_static rar"
    5. unless I'm badly mistaken your home diretcory will always be in your path. so cd'ing to any directory and typing rar should now give you a helpful list of command line options (if not tell us what shell you are using "echo $SHELL" and we can help youi add your home directory to your path automagically when you log in.

    6. I usually use "rar x filename.rar" to extract and "rar a -m5 -r new_filename.rar directory_to_compress/" for best compression or sometimes "rar a -m0 -v10000k new_filename file_to_split" to just split up a large file into smaller chunks.

    Maybe that'll be more help. You appear to be alinux newbie:)


  • Registered Users, Registered Users 2 Posts: 7,496 ✭✭✭quarryman


    yes i'm a linux noob.

    this is the shell i'm using: /bin/tcsh

    ok i had a bit of success. i followed lynchie's advice
    Did you type unrar or ./unrar - They are completely different... the first will only search the PATH envinorment entry the second says run unrar in this directory.

    Make sure you are in the same directory as the list of files above to run it.

    i put the rar file i wanted to unrar into the unrar directory and typed ./unrar e filename and it worked.

    so the only problem i have now is that i have to put the file into the rar directory and go there to get it to work.

    EDIT: actually i don't need to put the file in the rar directory, i can just direct it there. put i still need to be in the rar directory to make it work. is it possible to get rar to work using the GUI (by just clicking on the rar files) and get it to associate with the rar program?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 1,268 ✭✭✭hostyle


    I've never used unrar myself. "rar x filename" does exactly the same - one less binary file required :)

    There is no GUI for rar on linux (rar is proprietary closed source software, and the writers of rar have chosen to release it as CLI-only for linux). However apparently if rar is installed properly, "Ark" can be used to view / extract them in the GUI. What is meant by "installed properly" I'm not sure.

    re: having to copy files to the rar directory: Did you try copying rar_static and unrar to your home directory? Also, rename rar_static to rar after you do that (easier to remember and shorter to type).

    Then try installing Ark (if it isnt already) and see what happens. Perhaps if rar in in your path Ark will pick it up.

    --

    If you need to (I cant remember if tcsh includes your home directory in your $PATH by default) add this line to (the top of) the file .tcshrc in your home directory.

    set path = ($path /home/hostyle/)

    but replace hostyle with your own username


Advertisement