Page 1 of 1

Compiling on Linux without Root

PostPosted: Thu Feb 02, 2012 6:14 am
by creadak
Hey, I'm trying to install Cobra on a machine in college as I'm thinking about using it for an assignment, but I don't have root on these machines. So is there a way to compile cobra without needing root?

And as long as I'm asking questions, how come it has to be compiled with root priveliges in the first place?

Re: Compiling on Linux without Root

PostPosted: Thu Feb 02, 2012 11:53 pm
by Charles
By default, the installer targets /usr/local/cobra which usually requires root access, so it checks for root access at the start. Up until now, that's worked fine, but I understand your situation.

If you open InstallFromWorkspace.cobra you will find this line:
var installDirectories = [r'C:\Cobra', '/usr/local/cobra']

# which you can change to:
var installDirectories = ['/home/creadak/cobra']

# and this line:
.verifyElevatedPermissions

# which you can comment out:
#.verifyElevatedPermissions

Tell us if that works. If not, I'll take a closer look and possibly improve the installer.

Thanks for bringing this to our attention.

Re: Compiling on Linux without Root

PostPosted: Fri Feb 03, 2012 2:41 am
by creadak
That did indeed help thanks Charles.

Only had one more hiccup, had to stop it from installing the libs to the GAC, and instead copy them somewhere else and add them to my MONO_PATH.

All is working fine now, so I guess I'd better go do this assignment :)

Thanks for the help

Re: Compiling on Linux without Root

PostPosted: Fri Feb 03, 2012 12:19 pm
by Charles
Thanks for the update. Good luck on your assignment.