Mike Christianson
Mike Christianson

Categories

Tags

This week in Seven Languages in Seven Weeks brings the Io Language. Installing the binaries is, of course, the first task in beginning to use the language. However, I’m not off to a roaring start just yet.

After installing the binaries using the Mac package installer, I find that the io binary is not found.

$ io
-bash: io: command not found

Let’s try this…

$ /usr/local/bin/io
bash: /usr/local/bin/io: Permission denied

Hmmm… it is there, but I can’t access it… let’s look closer.

$ ls -l /usr/local
total 0
drwx------ 17 macports wheel 578 Aug 18 11:08 bin

Well, that explains it. For some reason, MacPorts set up /usr/local/bin/ with very restrictive permissions. And, apparently, I’m not the only one to run into this problem:

Let’s fix it with chmod.

chmod a+x /usr/local/bin/

It works!

$ io
Io 20110905
Io> 

Thanks to Jake Peck, creator of the Io binary installers, for his assistance in solving this little mystery.

Now, on to the fun stuff…