install jhead

Joined
Dec 29, 2015
Messages
4
Reaction score
0
Points
1
Does anyone know how to install jhead?

I've downloaded the code, but every time I try to use it a "command not found" message is returned: -bash: jhead: command not found

I've tried following instructions on other posts about how to install jhead, but am getting stuck on the part that tells me to copy it to /usr/local/bin/

The following message appears: cp: directory /usr/local/bin does not exist.

I broke down and contacted the developer, but he apparently does not work on Macs.

I'm running OS X Yosemite 10.10.5 on a Macbook Pro 13"

Thank you
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,032
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Please provide a link to the application and what instructions you've bee following. There is definitely a "/usr/local/bin" directory, but lets make sure you aren't going to blow up your machine with a bad command..
 
OP
T
Joined
Dec 29, 2015
Messages
4
Reaction score
0
Points
1
Thank you for the fast response.

The application was downloaded from:

http://www.sentex.net/~mwandel/jhead/

Version labeled: Pre-built OS-X Intel executable (version 2.97)

Links below are what I tried to install jhead:

http://unix.stackexchange.com/questions/74350/how-to-install-tar-file-jhead-on-mac-or-linux-machine
http://galleryproject.org/node/12672
http://macappstore.org/jhead/

Following the Mac App Store.org instructions I was directed to install an app: Xcode

The same app is referenced in the comments of the stack exchange link.

Still no luck for me though.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,032
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
The Homebrew method is fine, but requires installing Homebrew which might be overkill to just install this one app, so these are the steps you need to do to "install" this app..

Once you've downloaded the file from the website, it will be call jhead.txt in your Download folder, then open up the Terminal by hitting CMD+space and enter Terminal in there. In the terminal, follow the commands below..

Code:
$ cd ~/Downloads
$ mv jhead.txt jhead
$ chmod a+x jhead
$ sudo mkdir -p /usr/local/bin
$ sudo mv jhead /usr/local/bin

The first sudo command will prompt you for your password, enter it the folder is created. The next command will copy the file to that destination. This will take care of putting the file in the "usual" place, however the path is likely not part of your usual path, so follow with the rest here..

Code:
$ echo $PATH

Take a look at the path here which will show all the directories, if /usr/local/bin is already in the path, you are all set, if not, follow these next steps.

Code:
$ vi ~/.profile

Find the entry marked export PATH and then hit 'i' to insert the path /usr/local/bin there and then hit ESC to go back to view mode. Now hit the key sequence ":wq" to write and quit from the editor. Now close the Terminal and re-open it and then do the "echo $PATH" command above to see if the path showed up properly. Now you should be able to run jhead and use the program.
 
OP
T
Joined
Dec 29, 2015
Messages
4
Reaction score
0
Points
1
Hello Ashwin,

It worked. Hallelujah!! I followed all of your steps and an error was returned when I tried to update the .profile file, so I tried using jhead just to see if it would work and it executed with no errors and did what I wanted.

I knew that I needed to "tell" my Mac to recognize jhead or install it somehow, but I just didn't know exactly how to do that.

Thank you so much! This is exactly what I needed.

Margie
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,032
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Glad to help..:)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top