Figlet Install in Lion?

Discussion in 'macOS' started by A4orce84, May 6, 2012.

  1. A4orce84 macrumors 6502

    Joined:
    Apr 17, 2012
    #1
  2. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #2
    Try MacPorts or Fink. MacPorts I know has it:

    Code:
    figlet                         @2.2.4          textproc/figlet
    jW
     
  3. A4orce84 thread starter macrumors 6502

    Joined:
    Apr 17, 2012
  4. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #4
    If MacPorts is properly installed, just entering the following in Terminal should install it:

    Code:
    sudo port install figlet
    After it finishes, just enter "figlet" in Terminal to launch the app.

    jW
     
  5. A4orce84 thread starter macrumors 6502

    Joined:
    Apr 17, 2012
    #5

    Sorry I'm having so many issues, I ended up getting the following error message:
    Code:
    Asifs-MBP:~ aahmad$ sudo port install figlet
    Password:
    Warning: xcodebuild exists but failed to execute
    Warning: Xcode does not appear to be installed; most ports will likely fail to build.
    --->  Building figlet
    Error: Target org.macports.build returned: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
    Log for figlet is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_figlet/figlet/main.log
    Error: Status 1 encountered during processing.
    To report a bug, see <http://guide.macports.org/#project.tickets>
    Also tried the following:
    Code:
    Asifs-MBP:~ aahmad$ sudo port
    Warning: xcodebuild exists but failed to execute
    MacPorts 2.0.4
    Entering interactive mode... ("help" for help, "quit" to quit)
    [Users/aahmad] > 

    Any ideas? Thanks in advance!
     
  6. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #6
    You either haven't installed Xcode (available on the App Store) or you haven't installed it's xcodemake library, which you do from within the Xcode app (I just had to do this recently). So, if you don't have Xcode, download that first, then open it and go into Preferences to Downloads, and install the Command Line Tools.

    jW
     
  7. A4orce84 thread starter macrumors 6502

    Joined:
    Apr 17, 2012
    #7
    Code:
    Asifs-MBP:~ aahmad$ sudo port
    Password:
    Warning: xcodebuild exists but failed to execute
    MacPorts 2.0.4
    Entering interactive mode... ("help" for help, "quit" to quit)
    [Users/aahmad] > 
    Typing figlet just seems to have things hang unfortunately.

    That's what I currently see after installing xcode and the command line tools! =(
     
  8. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #8
    Hmm, mine was somewhat simliar, although I didn't get the xcodebuild warning. Someone else may be able to help you. Did you try typing in anything from there? On mine, I simply type in a word and it spits out the big version.

    Code:
    firefly:~ Mal$ figlet
    jump
       _                       
      (_)_   _ _ __ ___  _ __  
      | | | | | '_ ` _ \| '_ \ 
      | | |_| | | | | | | |_) |
     _/ |\__,_|_| |_| |_| .__/ 
    |__/                |_|    
    
    You can't tell from this very well, but once I entered figlet, there were no command prompts, the cursor simply dropped to the next line. I typed in the word and hit enter and it appeared on the screen. I used Control-C to exit, not sure if there's a better way.

    jW
     
  9. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #9
    Try entering this command in the terminal app:

    Code:
    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
    Then retry the "sudo port install figlet" command.
     
  10. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #10
    Have a Scooby Snack, ScoobyMcDoo! That's exactly what should be done, and OP, that should solve the problem (I had entered that after being prompted at one point, but wasn't sure I could locate the proper command again).

    jW
     
  11. A4orce84 thread starter macrumors 6502

    Joined:
    Apr 17, 2012
    #11
    Ding ding! That did it! Thanks everyone for your help!

    Final question -- I now want to use figlet to display a custom message whenever I start my terminal. I did this over in Linux world by modifying the "/home/user/.bash_profile" file.

    However, I'm not seeing the same file in OSX Lion, so the question now is what file do I need to modify so whenever I start terminal I see a custom Figlet message! =)

    Thanks again!

    --Asif
     
  12. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #12
    .bash_profile should be there. If it is not there, you can create it and it will be used.
     

Share This Page