Hi Peter,
which osx package of pd are you using? hc steiner's or the one from adam t lindsay or from miller's site?
I'm using the hc steiner's.
however you should add the -verbose flag to .pdrc or pd.command, since it prints out where pd searches for help files when you try to access them.
My pd.command and my .pdrc look now like this:
#!/bin/sh
-path /usr/local/lib/pd/pd_pidip_osx/abstractions
-path /usr/local/lib/pd/extra:/usr/local/lib/pd/pdp_pidip_osx/abstractions
-lib /usr/local/lib/pd/pdp_pidip_osx/pdp
-verbose
try listing the content of /usr/local/lib/pd in a terminal with ls -l wich prints everything in a nice list on your screen, plus two rows of ownership comments. tell me what you get.
[okaras:local/lib/pd] sara# ls -l total 2712 -rwxr--r-- 1 root wheel 2292 Dec 20 17:43 INSTALL_NOTES.txt -rwxr--r-- 1 root wheel 1770 Dec 20 17:43 Makefile -rwxr--r-- 1 root wheel 1553 Dec 20 17:43 Makefile.config -rwxr--r-- 1 root wheel 1061 Dec 20 17:43 Makefile.config.in drwxr--r-- 34 root wheel 1156 Dec 20 17:43 abstractions drwxr-xr-x 7 root wheel 238 Dec 20 17:43 bin -rwxr--r-- 1 root wheel 315 Dec 20 17:43 buildall -rwxr--r-- 1 root wheel 5280 Dec 20 17:43 changes.log -rwxr--r-- 1 root wheel 14082 Dec 20 17:43 config.log -rwxr--r-- 1 root wheel 28007 Dec 20 17:43 config.status -rwxr--r-- 1 root wheel 133727 Dec 20 17:43 configure -rwxr--r-- 1 root wheel 3562 Dec 20 17:43 configure.ac -rwxr--r-- 1 root wheel 17987 Dec 20 17:43 copying drwxr--r-- 5 root wheel 170 Dec 20 17:43 debug drwxr-xr-x 22 root wheel 748 Dec 20 17:43 doc drwxr-xr-x 2 root wheel 68 Oct 3 04:09 externs drwxr-xr-x 417 root wheel 14178 Dec 1 00:32 extra drwxr--r-- 9 root wheel 306 Dec 20 17:43 guile drwxr--r-- 33 root wheel 1122 Dec 20 17:43 include drwxr--r-- 10 root wheel 340 Dec 20 17:43 modules drwxr--r-- 12 root wheel 408 Dec 20 17:43 opengl -rwxr-x--x 1 root wheel 1051308 Dec 21 16:47 pdp.pd_darwin drwxr--r-- 29 root wheel 986 Dec 20 20:22 pdp_pidip_osx drwxr--r-- 76 root wheel 2584 Dec 20 17:43 pidip-modules -rwxr--r-- 1 root wheel 10149 Dec 20 17:43 readme drwxr--r-- 20 root wheel 680 Dec 20 17:43 scaf drwxr--r-- 11 root wheel 374 Dec 20 17:43 system -rwxr--r-- 1 root wheel 81579 Dec 20 17:43 tags -rwxr--r-- 1 root wheel 2594 Dec 20 17:43 todo -rwxr--r-- 1 root wheel 1873 Dec 20 17:43 todo.exp
I know that i'm not wheel, i'm Sara ;) or Staff(me). But how did these permissions wind up there? And; with chmod can i also change the permissions of a directory and its contents. [in my osx/unix book in front of me, i don't see this option]
Thanx, Sara
Hallo, sara@x-i.net hat gesagt: // sara@x-i.net wrote:
My pd.command and my .pdrc look now like this:
#!/bin/sh
"#!/bin/sh" only should be in pd.command, not in .pdrc.
-path /usr/local/lib/pd/pd_pidip_osx/abstractions
-path /usr/local/lib/pd/extra:/usr/local/lib/pd/pdp_pidip_osx/abstractions
-lib /usr/local/lib/pd/pdp_pidip_osx/pdp
-verbosetry listing the content of /usr/local/lib/pd in a terminal with ls -l wich prints everything in a nice list on your screen, plus two rows of ownership comments. tell me what you get.
I know that i'm not wheel, i'm Sara ;) or Staff(me). But how did these permissions wind up there? And; with chmod can i also change the permissions of a directory and its contents. [in my osx/unix book in front of me, i don't see this option]
The "permission denied" error you get has nothing do do with read or write permissions, but with executable permission.
Files, that start with the shebang #! try to run the command that is following the shebang. In your pd.command this is "/bin/sh/"
This command then takes over execution of the rest of the file. There are other shebang commands possible, for example /usr/bin/perl or /bin/make, but that isn't important here.
pd.command runs /bin/sh and the rest of the file is fed to /bin/sh.
/bin/sh or shortly sh is a shell, that now tries to interpret and execute the following lines in pd.command
If it finds a file, that cannot be executed, it reports: "permission denied".
So please try the following:
after the first line.
2a) put all folders, where pd should look for libraries, externals etc. after a "-path" in .pdrc, sepearated by ":" like: -path /usr/local/pd:/usr/local/pd/externs (Just an example path!)
2b) put libraries to load (Gem, etc) after a "-lib" in .pdrc, excluding the .pd_darwin suffix like: -lib Gem:pdp
That's about it.
Frank Barknecht _ ______footils.org__