The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Extracting files with Terminal

    Discussion in 'Apple and Mac OS X' started by sepandee, Nov 28, 2007.

  1. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    I'm trying to get my HP1018 to work with Leopard. Here's the instruction:
    http://foo2zjs.rkkda.com/INSTALL.osx

    I've installed Xcode and C Compiler. I've downloaded fink:there's no binary code for leopard, so I had to download from the source (look for the link on the 5th line of the finkproject website... link available in above link). The source's name is fink-0.27.8, and located on my desktop. So i typed:

    sepand-siassis-macbook:desktop sepandee$ tar xzf fink-0.27.8.tar.gz
    tar (child): fink-0.27.8.tar.gz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors

    So what do I do now?
     
  2. Budding

    Budding Notebook Virtuoso

    Reputations:
    1,686
    Messages:
    3,982
    Likes Received:
    0
    Trophy Points:
    105
  3. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    THat's an old binary, isn't it? The finkproject website already had the newest binary, but said that there's none for leopard. I think the one on macupdate is for 10.1 or something.

    Also, it says that I need to expand the tarball using the tar command and that expanding it in any other way can corrupt the file. Isn't the tar command line the same as unziping the file?
     
  4. system_159

    system_159 Notebook Deity

    Reputations:
    363
    Messages:
    794
    Likes Received:
    0
    Trophy Points:
    30
    Pretty much. I've never had a problem installing source code from tarballs that I opened with stuffit.

    Once you install it, I'd bet the terminal commands are:
    cd to fink code
    configure
    make
    make install
     
  5. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    but it says specifically not to use stuffit. So how do I install it?
     
  6. taelrak

    taelrak Lost

    Reputations:
    860
    Messages:
    2,979
    Likes Received:
    0
    Trophy Points:
    55
    OSX's default Archive Utility can unpack those for you.
     
  7. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    k so now I unpacked the tar file and ran the tar command line. It did what it had to do, but gave me a lot of errors at the end.

    So now I think I have to run the command sw/bin/pathsetup.sh
    But how do I get to the sw directory? When I open terminal, I'm already at / sepandee$ (my user file), whereas sw is in the root directory. Typing cd .. doesn't get me anywhere.
     
  8. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    k never mind the previous post.
    So I unzipped fink-0.27.8, went to its directory, typed in the ./bootcamp command, it asked me a bunch of questions which i just hit enter (the default values) and at the end it gave me some errors about not being able to install this and that patch. So now i have the /sw folder in my root directory.

    Now take a look at http://foo2zjs.rkkda.com/INSTALL.osx. What am I supposed to do next? Am I to enter the commands
    $ /sw/bin/pathsetup.sh
    $ fink scanpackages
    $ fink index
    $ sudo apt-get update
    $ sudo apt-get install fink
    ?? If so, in which directory? i can't find /sw/bin
     
  9. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    And now ignore the previous post.
    SO I got up to the 3rd step, where i have to give the command
    $ apt-get install ghostscript
    But when I do, i get this:

    sepand-siassis-macbook:~ sepandee$ apt-get install ghostscript
    E: Could not open lock file /sw/var/lib/dpkg/lock - open (13 Permission denied)
    E: Unable to lock the administration directory (/sw/var/lib/dpkg/), are you root?
    sepand-siassis-macbook:~ sepandee$ cd ..
    sepand-siassis-macbook:Users sepandee$ cd ..
    sepand-siassis-macbook:/ sepandee$ apt-get install ghostscript
    E: Could not open lock file /sw/var/lib/dpkg/lock - open (13 Permission denied)
    E: Unable to lock the administration directory (/sw/var/lib/dpkg/), are you root?
    sepand-siassis-macbook:/ sepandee$ cd sw/var/lib/dpkg
    sepand-siassis-macbook:dpkg sepandee$ cd lock
    -bash: cd: lock: Not a directory
    sepand-siassis-macbook:dpkg sepandee$ apt-get install ghostscript
    E: Could not open lock file /sw/var/lib/dpkg/lock - open (13 Permission denied)
    E: Unable to lock the administration directory (/sw/var/lib/dpkg/), are you root?
    sepand-siassis-macbook:dpkg sepandee$

    now what?
     
  10. Budding

    Budding Notebook Virtuoso

    Reputations:
    1,686
    Messages:
    3,982
    Likes Received:
    0
    Trophy Points:
    105
    Fink Commander updates itself. So even if you install an old binary, just run update after you install it.

    Furthermore, as it seems you have very limited command line experience, I would strongly recommend you use the binary version of Fink commander as that has a GUI front end.

    And to fix that error, you need to log in as root or admin. Do so by typing 'su' (without the ' ') and then typing in your password. That, or type

    sudo apt-get install ghostscript
     
  11. system_159

    system_159 Notebook Deity

    Reputations:
    363
    Messages:
    794
    Likes Received:
    0
    Trophy Points:
    30
    Winnar!

    Sudo allows you to run one thing as the root user, which is what you need to install that.
     
  12. sepandee

    sepandee Notebook Deity

    Reputations:
    71
    Messages:
    763
    Likes Received:
    0
    Trophy Points:
    30
    sudo worked actually! But again I ran into problems ....
    But after a good 2 hours of trying to learn Terminal, I finally did it! yaaaay. But I'll say the problems I ran into, so that next time I can install 10.6 I know what to do :p

    So first, at the finkproject website it said that Leopard users have to install from source, and unzip from terminal with the tar command line. which I couldn't. So I just extracted the stuff normally.

    Then ghostscript: apparently it's not enough to ahve Xcode AND X11SDK.pkg, and then I found out that I had to install X11User.pckg, which I couldn't find. I also figured out that I needed to run
    $ fink selfupdate-rsync
    Then I went in search for X11User.pkg with no luck. But apparently, i could bypass that by running
    $ fink install ghostscript -nox
    which didn't need X11 (I hear it's worse than Tiger's).

    And the rest, it was easier. I'm still trying to find out what hotplugs are, and what the hell CUPS means.

    Oh yeah, and sudo... totally needed that one!

    A BIG BIG Thanks to all those who helped.