Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
When I typed "whereis gcc" I did not get any response :( However, when I typed echo $PATH I got the correct path, like you mentioned... The way I installed xCode was by registering myself as a programmer at Apple, which allowed me to download the following file: xcode313_2736_developerdvd

When I opened that .dmg-file, it gave me the option of installing "Developer Tools", which I did... Can't see what the problem is :S

Ok I did a quick bit of research on this.

If in terminal, you do a 'ls /Developer/usr/bin/gcc' do you receive a directory listing or a "No such file or directory' error?

If you get the listing back, from what I can see, it means you installed the developer tools, but didn't install the command line developer tools, which means the developer tools located in /Developer/usr/bin can only be used via the xcode graphical interface, and aren't linked properly(or in this case, xcode just copies the apps to the correct spots) to be used in the command line via the conventional sense (being able to manually in terminal use the compiler and make and whatnot).

In the installer, I'm guessing you didn't install "UNIX Development" which is an optional package, the description of which is…

"Optional content to allow command-line development from the boot volume. Installs a duplicate of the GCC compiler and command line tools included with the core Xcode developer tools package into the boot volume. It also installs header files, libraries, and other resources for developing software using Mac OS X into the boot volume.* This package is provided for compatibility with shell scripts and makefiles that require access to the developer tools in specific system locations. This content is not relocatable and will only be installed onto the boot volume."

So it looks like you will need to run the installer again and install the optional files.

I'm most likely betting the above is the problem.
 
Last edited:
I cannot get the CrossFit WOD to show up. I can get other python scripts to work, such as the MacRumors one, but that CrossFit one just doesn't display anything. I set refresh to 3600. Text color is good.

What is the secret? :(
 
In the installer, I'm guessing you didn't install "UNIX Development" which is an optional package, the description of which is…
As it turned out, I had xCode without the UNIX Development option, so I downloaded the installer from another location and this one included the UNIX. I installed the xCode and ran the install-file again. This time, it took almost 15 minutes to install and I ended up with this bunch of code.

Since there are too many characters to post it here, I uploaded it to this link: http://www63.zippyshare.com/v/14675395/file.html Could you please check it out and let me know if it looks better now?
 
I saw this on the Itunes App Store for GeekTool.

On the lower Left of the screenshot is a music player? Assumably syncing with iTunes or something.

Does anyone know what program or script this is?
It's beautiful!

Screenshot2011-11-30at72918PM.png


Thank you!
-Kelley

How do you get the text to look like it's behind the sand?
 
I cannot get the CrossFit WOD to show up. I can get other python scripts to work, such as the MacRumors one, but that CrossFit one just doesn't display anything. I set refresh to 3600. Text color is good.

What is the secret? :(

It would help if you posted the command you put into geektool. I have no issues with it, you do have to specify a command line argument to tell the script what to display.

Here is the usage information:
Code:
Usage: crossfitgetwodv1.2.py [options]
 CROSSFIT WOD v1.2
 ROBERT WOLTERMAN (xtacocorex) - 2011

 GRABS THE 5 CROSSFIT WORKOUT OF THE DAY (WOD)
 
 *** MAKE SURE TO KEEP THE REFRESH RATE IN GEEKTOOL/NERDTOOL TO A SLOWER VALUE


Options:
  -h, --help       show this help message and exit
  -d, --day        Displays the WOD for the current day
  -a, --all        Displays all of the WODs in the feed
  -u, --underline  Underlines the day header(s)
  -c, --convert    Converts the date format from YYMMDD to MM/DD/YY

If you want to see just the current day, you'll use the -d option.
 
Could anyone possibly make me a CNN RSS news feed script of some sort? I've tried to make one with an old yahoo canada top news .sh file I got online somewhere but when I put a new rss link in the .sh file the output never works perfectly and comes out like shown in the picture I attached. I'd also prefer for the output not to be double spaced as it is now if that's possible. Also, the little "CNN.com brings you up to date news..." bit above the output is really not necessary and I'd like that gone too. Thanks to anyone who gives this a shot

This is the current .sh file code that I'm using with the CNN RSS link
Code:
#!/bin/sh

URL="http://rss.cnn.com/rss/cnn_topstories.rss"

if [ $# -eq 1 ] ; then
  headarg=$(( $1 * 2 ))
else
  headarg="-8"
fi

curl --silent "$URL" | grep -E '(title>|description>)' | \
  sed -n '4,$p' | \
  sed -e 's/<title>//' -e 's/<\/title>//' -e 's/<description>/   /' \
      -e 's/<\/description>//' | \
  sed -e 's/<!\[CDATA\[//g' |            
  sed -e 's/\]\]>//g' |         
  sed -e 's/<[^>]*>//g' |      
  head $headarg | sed G | fmt
 

Attachments

  • Screen shot 2011-12-14 at 7.01.32 PM.png
    Screen shot 2011-12-14 at 7.01.32 PM.png
    925.2 KB · Views: 343
It would help if you posted the command you put into geektool. I have no issues with it, you do have to specify a command line argument to tell the script what to display.

Here is the usage information:
Code:
Usage: crossfitgetwodv1.2.py [options]
 CROSSFIT WOD v1.2
 ROBERT WOLTERMAN (xtacocorex) - 2011

 GRABS THE 5 CROSSFIT WORKOUT OF THE DAY (WOD)
 
 *** MAKE SURE TO KEEP THE REFRESH RATE IN GEEKTOOL/NERDTOOL TO A SLOWER VALUE


Options:
  -h, --help       show this help message and exit
  -d, --day        Displays the WOD for the current day
  -a, --all        Displays all of the WODs in the feed
  -u, --underline  Underlines the day header(s)
  -c, --convert    Converts the date format from YYMMDD to MM/DD/YY

If you want to see just the current day, you'll use the -d option.
Jackpot! I forgot to put that in the command line. I feel rilly intel-o-gent now. :p

Thank you!
 
As it turned out, I had xCode without the UNIX Development option, so I downloaded the installer from another location and this one included the UNIX. I installed the xCode and ran the install-file again. This time, it took almost 15 minutes to install and I ended up with this bunch of code.

Since there are too many characters to post it here, I uploaded it to this link: http://www63.zippyshare.com/v/14675395/file.html Could you please check it out and let me know if it looks better now?

Well that script installed not just ImagMagick, but also other addons which is why it took so long. Going over the log you posted, there were a few hiccups but nothing really wrong. The only thing that is worrysome is the end.

Code:
ImageMagick installed.
./install_im.sh: line 150: convert: command not found
Testing...
./install_im.sh: line 153: /usr/local/bin/convert: is a directory
./install_im.sh: line 154: /usr/local/bin/convert: is a directory
./install_im.sh: line 155: /usr/local/bin/convert: is a directory
./install_im.sh: line 156: /usr/local/bin/convert: is a directory
Tests done.

Out of curiousity I installed ImageMagick via that shell script on a snow leopard MBP that I'm formatting this week, and I didn't get those errors at the end.

Two things I'd check if I were you...

1. in Terminal type "echo $PATH" again. You should have a new directory string in there called "/Users/USERNAME/ImageMagick-6.4.0/bin"

2. Run the command "convert -version" and you should get version and copyright infromation about ImageMagick.

Though while I don't know why those tests failed at the end (it may be due to the scripts path prefixes listed at the end, though it's odd that it worked perfectly for me), but if both 1 and 2 that I listed above check out, I'd say it got installed correctly.
 
Geektool Audio Spectrum

hey everybody,

ive been spending a while now looking around for some way to get the "audio bars" itunes displays incorporated into my background. it seems geektool is the best way to accomplish this.

unfortunately, i have no scripting skills. none.

if anyone has any idea how to achieve this, or if it was discussed in another location, any help would be appreciated.

i also apologize if this is in the wrong section, please direct me to the correct one and i will delete this post.
 
Two things I'd check if I were you...

1. in Terminal type "echo $PATH" again. You should have a new directory string in there called "/Users/USERNAME/ImageMagick-6.4.0/bin"

2. Run the command "convert -version" and you should get version and copyright infromation about ImageMagick.

Though while I don't know why those tests failed at the end (it may be due to the scripts path prefixes listed at the end, though it's odd that it worked perfectly for me), but if both 1 and 2 that I listed above check out, I'd say it got installed correctly.

First of all, thank you so much for taking the time to help me so much, I really appreciate it :) Secondly, I tried writing "echo $PATH" in Terminal and got the following response:
33e7jgi.jpg


In relation to no. 2 where you want me to "Run the command "convert-version", I'm sorry, but I'm not really sure what that command is called, so if you could write the specific command I am supposed to use, that would be greatly appreciated :)

Once again, thank you.
 
I tried writing "echo $PATH" in Terminal and got the following response:

In relation to no. 2 where you want me to "Run the command "convert-version", I'm sorry, but I'm not really sure what that command is called, so if you could write the specific command I am supposed to use, that would be greatly appreciated :)

Ok I'm not sure why you are getting a different result honestly.

As to #2, in terminal simply type 'convert -version'
(Explanation: convert is an app that is installed with and used by ImageMagick. 'convert -version' simply runs the convert program and asks it version information, basically I am just verifying that it is there and usably by doing this). If you get the version info back it should be installed properly.
 
First of all, thank you so much for taking the time to help me so much, I really appreciate it :) Secondly, I tried writing "echo $PATH" in Terminal and got the following response:
Image

In relation to no. 2 where you want me to "Run the command "convert-version", I'm sorry, but I'm not really sure what that command is called, so if you could write the specific command I am supposed to use, that would be greatly appreciated :)

Once again, thank you.

If all has gone well, you can run the following commands and get the following output:
Code:
[08:56:08][taco@taco-stand]$ which convert
/usr/local/bin/convert
Code:
[08:56:10][taco@taco-stand]$ convert -version
Version: ImageMagick 6.7.1-10 2011-12-11 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features:  OpenCL
 
As to #2, in terminal simply type 'convert -version'

When I do that, I get the following response:

Code:
Jesper-Pedersens-iMac:~ Shorty$ convert -version
-bash: convert: command not found
Jesper-Pedersens-iMac:~ Shorty$



If all has gone well, you can run the following commands and get the following output:
Code:
[08:56:08][taco@taco-stand]$ which convert
/usr/local/bin/convert

When I write this command, I get nothing in return, simply:

Code:
Jesper-Pedersens-iMac:~ Shorty$ which convert /usr/local/bin/convert
Jesper-Pedersens-iMac:~ Shorty$
 
When I do that, I get the following response:

Code:
Jesper-Pedersens-iMac:~ Shorty$ convert -version
-bash: convert: command not found
Jesper-Pedersens-iMac:~ Shorty$
This means ImageMagick either wasn't installed correctly somehow. Your $PATH is correct so it has to be a problem during install.



When I write this command, I get nothing in return, simply:

Code:
Jesper-Pedersens-iMac:~ Shorty$ which convert /usr/local/bin/convert
Jesper-Pedersens-iMac:~ Shorty$

For that part you are confusing the command, the command is 'which convert' and you should receive the output '/usr/local/bin/convert', (which is where it should be installed to, if you receive no directory listing, it means it's not installed).

Another way of checking if it is there is by typing in terminal 'ls /usr/local/bin/convert' if you receive "No such file or directory" it isn't there.

I don't know why it isn't working for you though, according to the log you posted earlier, convert was installed properly along with the other apps for ImageMagick. This is really quite mindbogglingly odd as this should be working for you.
 
When I write this command, I get nothing in return, simply:

Code:
Jesper-Pedersens-iMac:~ Shorty$ which convert /usr/local/bin/convert
Jesper-Pedersens-iMac:~ Shorty$

Ah, you typed the command wrong, it's just "which convert", but it still returned nothing, so ImageMagick didn't properly install.

You need to have X11 installed on the system, that is included on the OS install DVD.

Going through the .rtf you uploaded, there is a build error while the script tried to build Freetype.

Code:
usr/local/lib/libfreetype.dylib -lxml2 -lpthread -licucore /usr/local/lib/libjpeg.dylib -L/usr/X11/lib /usr/local/lib/libpng14.dylib -lz -lm -install_name  /usr/local/lib/libwmf-0.2.7.dylib -compatibility_version 9 -current_version 9.0
Undefined symbols for architecture x86_64:
  "_png_check_sig", referenced from:
      _gdImageCreateFromPngCtx in libgd.a(gd_png.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [libwmf.la] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

What type of Mac do you have? If you have one with a 64bit processor, you could probably just install the binary that is provided on the ImageMagick website: http://www.imagemagick.org/download/binaries/ImageMagick-x86_64-apple-darwin11.2.0.tar.gz

The line in the code block above that leads me to believe you have a 64bit system is that it cannot find the symbols (an interim step in the compile process) for your processor architecture.
 
Another way of checking if it is there is by typing in terminal 'ls /usr/local/bin/convert' if you receive "No such file or directory" it isn't there.

As you can see, it just says "convert" when I employ the command you mentioned...
2v95f6t.jpg




You need to have X11 installed on the system, that is included on the OS install DVD.

I am pretty sure I have X11 installed. When I search for it, I found a program called X11 and when I opened it, it showed me the following window:

i57xax.jpg



I'm starting to wonder, if this is really worth all this hassle and all your work... :(
 
As you can see, it just says "convert" when I employ the command you mentioned...
Image

Here is something to try, open up Terminal.app and paste the following into it:
Code:
/usr/local/bin/convert/convert -version

I think this will work, because when you did the ls in /usr/local/bin/convert, it returned something named convert.
 
Here is something to try, open up Terminal.app and paste the following into it:
Code:
/usr/local/bin/convert/convert -version

I think this will work, because when you did the ls in /usr/local/bin/convert, it returned something named convert.

Bingo?
av1wdi.jpg
 

Well that worked, no idea why it's installed that way.

Now to fix it...

In Terminal.app, paste the following commands.

1: (enter password when asked)
Code:
sudo mv /usr/local/bin/convert/convert /usr/local/bin/convert2

2:
Code:
sudo rmdir /usr/local/bin/convert

3:
Code:
sudo mv /usr/local/bin/convert2 /usr/local/bin/convert

4:
Code:
echo $PATH

Verify that /usr/local/bin is contained in the PATH variable.

5:
Code:
convert -background blue -fill yellow -pointsize 40 label:Hello -rotate -40 ~/test.png

If you end up with a blue square with yellow text in your home directory, you win.
 
Then I do believe, I win :)

2e4lu9c.jpg


Now I just have to find out how to integrate it with GeekTool :) Thankfully, that should be the easy part. Thanks a bunch for all your help, ya'll have been amazing!
 
Last edited by a moderator:
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.