help installing gcaldaemon using terminal!!

Discussion in 'Mac Basics and Help' started by yojitani, Apr 16, 2007.

  1. yojitani macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #1
    This looks like a pretty useful tool to me if only I could translate the installation instructions into a language I understand! Please help!

    Here are the instructions:

    From step 3, I'm lost. If I try the sudo command in terminal it tells me it can't find the file, even though I have changed 'downloads' to 'desktop' (I downloaded the file there) and changed the name of the file to match the one I downloaded. I have no idea about what the cd/usr/ etc etc means. How do I 'unzip under this directory'? If I don't have it, how do make it?? Help!!

    Thanks!
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    cd = change directory. On a standard Mac the directory (or folder in Mac terms) /usr/local/bin does not exist. It appears you are trying to install Linux software. Unless this has been recompiled for Mac OSX this will not work.

    If you want to continue trying this you will need to create /usr/local/bin

    You can do this via sudo mkdir -p /usr/local/bin

    Note that sudo will only work if you try this as an Administrator.

    Also you say you downloaded the file to your desktop. This is not /desktop or anything like it. You need to specify the correct full Unix path. This is case sensitive and would normally be something like /Users/<your user short name/Desktop (obviously put your user short name in the correct place).
     
  3. synth3tik macrumors 68040

    synth3tik

    Joined:
    Oct 11, 2006
    Location:
    Minneapolis, MN
    #3
    *Looks at stack of UNIX books*


    ahhhhhhh UNIX:mad:

    There is a lot of helpful resources on the web dealing with UNIX commands and a lot of these sites deal with UNIX on a Mac.There are also a lot of books dealing with running UNIX on a Mac. This is my fav book here at work

    [​IMG]
     
  4. Poeben macrumors 6502

    Joined:
    Jul 29, 2004
    #4
    Although you are correct, there is a simpler way:

    ~/Desktop

    For example, typing:

    cd ~

    will change directory to your home folder (i.e. Users/you/ )
     
  5. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #5
    I'm well aware of that: I write Unix based server software for a living :D I was trying to keep things as simple and straight forward for the OP as possible. In my experience the whole ~ can be a bit :eek: for people the first time they try and use a Unix shell :)
     
  6. janey macrumors 603

    janey

    Joined:
    Dec 20, 2002
    Location:
    sunny los angeles
    #6
    is java 1.6 even out of beta yet? (&*^@#$ing apple)

    edit: err..nevermind. thought it required >=1.6.
     
  7. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #7
    Thanks all for your help so far. You are talking to a complete unix dummy, I appreciate the simplicity you've explained things thus far. Here's where I'm stuck though:
    sudo unzip /downloads/gcaldaemon-linux-1.x.zip

    do I need to change this command? I think robbie is telling me to change this to Users/myshortusername/Desktop/gcaldaemon-linux-1.x.zip

    But this doesn't work.

    Thanks!
     
  8. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #8
    Saying "it doesn't work" is absolutely no help to anyone. To work out what you are doing wrong we need the exact output of the command. And I ask again: is this Linux software? Because if it is it won't work[/url]. If you have an OSX version then it should. Also have you created the directory via the cd command I suggested above?
     
  9. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #9


    ok. good question. I am following directions from here: http://gcaldaemon.sourceforge.net/usage12.html

    here it says to download the latest linux compatible module.:confused: so i have no idea. i found this through macosxhints so I'm guessing that it works?

    So, first I do: mkdir -p /usr/local/bin
    this seems to work fine.

    Then I do:

    sudo unzip /Users/<myusername>/Desktop/gcaldaemon-linux-1.0-beta8.zip

    now, this runs! OK. progress.
    However, when I go to the next command:
    sudo chgrp -R admin /usr/local/sbin/GCALDaemon

    I get this message: No such file or directory

    So I guess this means that I did not unzip in the right place? if so, how do I unzip 'under' usr/local/bin which I guess I created in the first step?

    Sorry if this is confusing or just plain stupid on my part... this is most I can tell you though.

    YT
     
  10. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #10
    You need to use cd to change d directory as stated in the step before unzip.

    You can use the pwd command to confirm your current directory and ls to check the files have been unzipped correctly.
     
  11. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #11

    I'm sorry, this may be perfectly clear to you, but I don't understand what I'm supposed to do.

    If I try:
    cd /usr/local/sbin

    I get this message:
    -bash: cd: /usr/local/sbin: No such file or directory

    I really appreciate the help. I know it must be very frustrating.

    YT
     
  12. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #12
    The error is telling you what's wrong: that directory does not exist. So you have not created it via a mkdir (make directory command).

    Can you please copy and paste the exact output of this (each on one line with return after it)

    sudo mkdir /usr/bin/local
    ls -ld /usr/bin/local
     
  13. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #13
    mkdir: /usr/bin/local: File exists
    mkdir: ls: File exists
    mkdir: -ld: File exists
    mkdir: /usr/bin/local: File exists
     
  14. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #14
    Sorry: my previous instructions were open to misinterpretation. I meant each line on a seperate line in the Terminal and then type return. Lets try again:

    Type: sudo mkdir -p /usr/bin/local <return>
    Copy & paste any output (might be none)
    Type: ls -ld /usr/bin/local <return>
    Copy & paste output
    Type: cd /usr/bin/local <return>
    Copy & paste any output (might be none)
    Type: pwd
    Copy & paste output

    If the output to pwd is "/usr/bin/local" execute the unzip command and copy & paste the output

    Sorry if this sounds like I'm speaking (or typing) down to you, but everything has to be exact in the Terminal...


    EEEEK! Stop! All of those /usr/bin/local bits about should, of course, be /usr/local/sbin
     
  15. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #15
    no, it doesn't seem like you're talking down at all. sorry about the long output. If it's unnecessary, I can clip it (it doesn't seem to be necessary).

    Thanks robbie!

    YT
     
  16. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #16
    OK, that seems to have worked, but as noted in my edit above I ballsed it up. Please do it again with the correct path. You should be able to delete to copy you have just extracted to the wrong location if you want...
     
  17. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #17
    damn. this far seems to work. I but then with the next step, I get: chgrp: /usr/local/sbin/GCALDaemon: No such file or directory:confused:

    Robbie, next time in london, I'll buy you a couple of beers!
     
  18. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #18
    OK. So you've created the correct directory (sorry!) used cd to change into and unzipped there. Now we are trying to change the group ownership of that file (chgrp). But the system is saying the file does not exist.

    We can check in the file via

    ls -l <filename> so in this case ls -l /usr/local/sbin/GCALDaemon

    We could also list the contents of the whole directory as a sanity check

    ls -l /usr/local/sbin

    What do those return?
     
  19. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #19
    We can check in the file via

    ls -l <filename> so in this case ls -l /usr/local/sbin/GCALDaemon

    response:
    ls: /usr/local/sbin/GCALDaemon: No such file or directory

    We could also list the contents of the whole directory as a sanity check

    ls -l /usr/local/sbin

    no response. back to prompt

    Should I start again with creating the directory?
     
  20. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #20
    Yes. This is my fault: I had the wrong directory names above. Sorry!

    sudo mkdir -p /usr/local/sbin
    cd /usr/local/sbin
    unzip
    chgrp
    chmod
    chmod
     
  21. yojitani thread starter macrumors 68000

    yojitani

    Joined:
    Apr 28, 2005
    Location:
    An octopus's garden
    #21
    Thanks, Robbie. This works. I'm going to have to pack in the rest of the installation for today... man, how grateful am I for GUI!?

    YT
     
  22. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #22
    There's more :eek:

    Seriously though: there is a lot of power in the command line once you learn a few basics :)
     
  23. LaMancha macrumors newbie

    Joined:
    Apr 19, 2007
    #23
    Great to see a detailed instruction on GCALDaemon. I have installed GCALDaemon successfully. As I can see the correct response after start the 'standalone-start.sh' script.

    But I have difficulty for Open the 'gcal-daemon.cfg' configuration file.

    cd /usr/local/sbin/GCALDaemon/conf
    open -a subethaedit gcal-daemon.cfg
    error shown below:-


    pcd624132:/RL/local/sbin/GCALDaemon/conf RL$ open -a subethaedit gcal-daemon.cfg2007-04-19 20:12:01.190 open[369] Couldn't open file: /RL/local/sbin/GCALDaemon/conf/gcal-daemon.cfg
    pcd624132:/RL/local/sbin/GCALDaemon/conf RL$

    can anyone give me a help.

    Thanks a lot.
     
  24. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #24
    Well the obvious question is: do you have subethaedit installed? The -a switch is forcing that as the editor, if it's not installed that won't work. You should be able to TextMate (it it's installed) or TextEdit instead...
     
  25. LaMancha macrumors newbie

    Joined:
    Apr 19, 2007
    #25
    Thank to Robbie. So the Linux idiot get the GCALDaemon work.
     

Share This Page