Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: travelin cat
but I get a permission denied. So I tried:
sudo cp asp2php /usr/local/bin
which looks like it works but nothing. So I tried to change directories to /usr/local/bin to see what was there and aparently 'bin' is not a directory, so how is a cp command supposed to work anyway?
if anyone has spent more time behind a unix box and can help I would really appreciate it.
cp asp2php /usr/local/bin
is trying to copy the file asp2php to the usr/local/bin folder. My guess is that the directory may not be specified... ie:
cp /user/john/desktop/asp2php \usr\local\bin
I don't think you not having a bin is the problem, however if you want to check this, you can download a free tool called TinkerTool. (Google it, you'll find it.) Use it to "Show hidden and system files". Then you should be able to navigate to Macintosh HD\usr\local\bin in OSX and see if it exists.
Hope this helps you :0)
<added> Oh and if you use TinkerTool, be sure to hit the "Relaunch Finder" button after any changes to see them imediatly... </added>
You can find all of the 'bin' and 'sbin' folders by running these commands:
sudo find / -type d -iname 'bin'
sudo find / -type d -iname 'sbin'
If /usr/local/bin doesn't excist you can easily create it with this command:
sudo mkdir -pv /usr/local/bin
If /usr/local/bin didn't exist, I'm at a loss to explaining why 'cp' didn't complain.
I have rebooted and still the install checker does not verify that it was installed. The only part that bothers me is that I can't see if it is working and maybe something else is the problem.
I also tried the mkdir, but wasn't allowed to do that. I'm not in front of the machine, or I would be able to give the reason. (It was 1:30am)
aparently 'bin' is not a directory
If there was no directory called bin, the the copy command you used would have copied the file asp2php to a file called bin in the /usr/local directory. When what you wanted was to copy the file asp2php to a file called asp2php in the /usr/local/bin directory.
Check if the size and dates of asp2php file and bin file are the same, and if so, delete the bin file, create a bin directory, and re-copy the asp2php file.
1) using the Terminal -
ls -aloF /usr/local/
2) using Finder:
menu:Go => Go to Folder ...
sudo mkdir -pv /usr/local/bin
mkdir: illegal option -- v
then dropping the 'v' I get this:
sudo mkdir -p /usr/local/bin
mkdir: /usr/local/bin: Not a directory
and dropping all of the options:
sudo mkdir /usr/local/bin
mkdir: /usr/local/bin: File exists
So I think that the bin file that I have is something I accidently created while trying to do this. But now I can't think of the commands for erasing or renaming files.
I really need to get into the terminal window more often...
Thanks for all of the help. I was trying every combination of commands I could think of, but the 'rm' is what it took to kill the bin file.
One day when I get some time I will have to start studying up on my unix again.