Hello...
I'm new to this, and I've been trying to install a unix command line tool written in C in OSX.
It includes a makefile, and it compiles without errors, but when I want to use it in a terminal window, it tells me that the command was not found.
So maybe it's because I didnt copy the bin to the proper directory, or used the right permission, I don't know, but How do you usually port a unix c program to OSX??
Following is what I did in detail:
The command line tool is ChordPro.... a guitar chord utility... it can be downloaded from http://public.planetmirror.com/pub/olga/chordpro/Programs/CHORD3.6.tar.gz
I Untared it, and modified the makefile to:
.
.
.
# where to put the resulting program
BINDIR = /usr/local/bin
# where to put the man page
MANDIR = /usr/local/share/man
MANEXT = 1
.
.
leaving the rest untouched
than in terminal window :
make
make install
I even tried:
sudo su
make
make install
the tool is compiled, copied to usr/local/bin
but if I call for it, it doesn't work... even the man doesn't work...
what did I do wrong??
I created a project with Project Builder, compiled and run it from Project Builder, and it worked, but as a standalone command line tool from the terminal... nada
thanks for helping me improving my unix porting skills.... and hopefully even my guitar repertoire...
I'm new to this, and I've been trying to install a unix command line tool written in C in OSX.
It includes a makefile, and it compiles without errors, but when I want to use it in a terminal window, it tells me that the command was not found.
So maybe it's because I didnt copy the bin to the proper directory, or used the right permission, I don't know, but How do you usually port a unix c program to OSX??
Following is what I did in detail:
The command line tool is ChordPro.... a guitar chord utility... it can be downloaded from http://public.planetmirror.com/pub/olga/chordpro/Programs/CHORD3.6.tar.gz
I Untared it, and modified the makefile to:
.
.
.
# where to put the resulting program
BINDIR = /usr/local/bin
# where to put the man page
MANDIR = /usr/local/share/man
MANEXT = 1
.
.
leaving the rest untouched
than in terminal window :
make
make install
I even tried:
sudo su
make
make install
the tool is compiled, copied to usr/local/bin
but if I call for it, it doesn't work... even the man doesn't work...
what did I do wrong??
I created a project with Project Builder, compiled and run it from Project Builder, and it worked, but as a standalone command line tool from the terminal... nada
thanks for helping me improving my unix porting skills.... and hopefully even my guitar repertoire...