[Radiance-general] sudo recontrib

Guglielmetti, Robert Robert.Guglielmetti at nrel.gov
Wed Mar 16 09:32:02 PDT 2016


A "file not found" error is different from the permissions error you were getting. Do you have your lib directory set in your RAYPATH environment variable? I came in this one late so forgive me if this is redundant but you should have a RAYPATH defined, and it should point to your lib dir (where you should have all the Radiance lib files, such as these dat files and other critical files for Radiance's operation). Most of us also add the current working directory (".") to the PATH and RAYPATH as well. (Your PATH should point to wherever you have the Radiance binaries.)

You should not have multiple copies of everything as it makes it hard to maintain consistency, and makes troubleshooting these kinds of path and permissions errors harder too.


On 3/16/16, 5:23 AM, "urtza.uriarte at upc.edu<mailto:urtza.uriarte at upc.edu>" <urtza.uriarte at upc.edu<mailto:urtza.uriarte at upc.edu>> wrote:


Dear Andy,

I have tried with;

sudo chmod 664 GenericTranslucent20.dat
sudo chmod 664 rang.cal

sudo chmod 644 GenericTranslucent20.dat
sudo chmod 644 rang.cal

sudo chmod 600 GenericTranslucent20.dat
sudo chmod 600 rang.cal

sudo chmod 700 GenericTranslucent20.dat
sudo chmod 700 rang.cal

and the padlock continues anyway (The files there are in /usr/local/bin/radiance/bin/ and  /usr/local/bin/radiance/lib/, as well). I have tried with rcontrib and it scripts this anyway:


rcontrib -f /usr/share/radiance/klems_int.cal -b 'kbin(-sqrt(.5),sqrt(.5),0,0,0,1)' -bn Nkbins -m windowglow -I+ -ab 2 -ad 512 -lw 2e-5 sc-vi3M_vmx.oct < sc-vi3M.pts > photocells1.vmx

rcontrib: fatal - cannot find data file "GenericTranslucent20.dat"

I do not know what happen but I will continue finding an error (that padlock is very strange).
Thank you very much.
Best regards,
Urtza.



urtza.uriarte at upc.edu<mailto:urtza.uriarte at upc.edu> escribió:

Dear Andy,
Thank you very much for your instructions.
I will try with them.
Best regards,
Urtza.



Andy McNeil <mcneil.andrew at gmail.com<mailto:mcneil.andrew at gmail.com>> escribió:

Urtza,
Here's some more information on file ownership and permissions for linux:
http://linuxcommand.org/lc3_lts0090.php
Andy

On Tue, Mar 15, 2016 at 11:23 AM, Andy McNeil <mcneil.andrew at gmail.com<mailto:mcneil.andrew at gmail.com>> wrote:
Urtza,

You should open up permissions on those two files like so:

sudo chmod 664 GenericTranslucent20.dat
sudo chmod 664 rang.cal

This changes permissions to allow owner and group read/write and everyone read.
(you need to be in the directory or give the full path to the file).

Andy

On Tue, Mar 15, 2016 at 9:19 AM, <urtza.uriarte at upc.edu<mailto:urtza.uriarte at upc.edu>> wrote:

Dear Lars,

Thank you very much for your reply.

I tried with Five-Phase method earlier and all command worked. However, now I exported the model from Rhino and I have some materials that they need two specific files. I do not why they do not run without sudo, placing where there are others, as well (They keep always the padlock, I copy there from DIVA's files. They are not from radiance package previously installed). I use oconv, rtrace and rpict with sudo and they work without problem. Nervertheless, if using sudo is not good I remove those materials and I could use rcontrib without sudo.

Thank you for your suggestions. I read Axel Jacob's tutorials but rereading will be fine.
Best regards for you,
Urtza.



"Lars O. Grobe" <grobe at gmx.net<mailto:grobe at gmx.net>> escribió:

Dear Urtza,

two comments on your installation - this should be solved before you even start using a complicated combination of commands such as the three-phase method.

First, with a correct configuration of your system you will not need to run rcontrib as super-user (sudo). Your regular user account just needs read-access to the .dat and .cal files in this case, so why would you not grant the proper permissions?

Second, as rcontrib is not found, what makes you think it is installed? Did you install Radiance from sources, did the build complete without errors, and did you include the directory containing the binaries in your PATH environment variable? Does any other Radiance command work for you?

I would recommend having a look at Axel Jacob's set of tutorials first, including the unix-introduction. Otherwise you risk messing up a lot of your models with work-arounds, and even risk the integrity of your system by using sudo where it should definitively not be applied.

Cheers, Lars.




Dear experts,

I am trying with Three-Phase Method for Simulating Complex Fenestration, following A McNeil tutorial.

I am using Ubuntu 14 OS. I need use sudo command because I have GenericTranslucent20.dat material and rang.cal that they are locked anyway. However, when I have launched sudo rcontrib, it scripts that:


sudo rcontrib -f /usr/share/radiance/klems_int.cal -b 'kbin(-sqrt(.5),sqrt(.5),0,0,0,1)' -bn Nkbins -m windowglow -I+ -ab 2 -ad 512 -lw 2e-5 sc-vi3M_vmx.oct < sc-vi3M.pts > photocells.vmx

sudo: rcontrib: command not found


Could someone say what the problem is? Thank you in advance.
Best regards,
Urtza.



_______________________________________________
Radiance-general mailing list
Radiance-general at radiance-online.org<mailto:Radiance-general at radiance-online.org>
http://www.radiance-online.org/mailman/listinfo/radiance-general








More information about the Radiance-general mailing list