All,

I am using Mactex Texlive 2008 on a Macbook pro.

I did this:

sudo ctxtools --updatecontext

After reading http://wiki.contextgarden.net/Running_Mark_IV, I tried:

sudo rsync -av rsync://contextgarden.net/minimals/current/context/current/ /usr/local/texlive/2008/texmf-dist/
sudo rsync -av rsync://contextgarden.net/minimals/current/bin/luatex/osx-universal/bin/luatex /usr/local/texlive/2008/bin/
Then I try:
david-arnolds-macbook-pro:~ darnold$ sudo luatools --generate 
And I get:
sudo: luatools: command not found
Then I tried:
david-arnolds-macbook-pro:~ darnold$ luatools --generate 
The result was:
-bash: /usr/texbin/luatools: Permission denied
Trying the context command yields the same result:
david-arnolds-macbook-pro:~ darnold$ context --make 
Result:
-bash: /usr/texbin/context: Permission denied
So, there is some sort of permissions problem.

We looked at this:

david-arnolds-macbook-pro:texbin darnold$ cd /usr/texbin
david-arnolds-macbook-pro:texbin darnold$ ls -l lua*
lrwxr-xr-x  1 root  wheel        6 May 13 17:46 lualatex -> luatex
-rwxr-xr-x  1 root  wheel  8009384 Aug 13  2008 luatex
lrwxr-xr-x  1 root  wheel       49 May 13 17:46 luatools -> ../../texmf-dist/scripts/context/lua/luatools.lua

And tried:

david-arnolds-macbook-pro:texbin darnold$ ls -l ../../texmf-dist/scripts/context/lua/luatools.lua
-rw-r--r--  1 33  33  222585 Aug 14 01:50 ../../texmf-dist/scripts/context/lua/luatools.lua

And see that this file is not executable, so we try:

david-arnolds-macbook-pro:texbin darnold$ sudo chmod +x ../../texmf-dist/scripts/context/lua/luatools.lua

Now the following works.

david-arnolds-macbook-pro:texbin darnold$ luatools --generate

But this piecemeal approach to making things executable might go on and on. Can someone give a more universal cure? Is there an entire directory of scripts that need to be executable?

Thanks.

David