Forums

Compiling on Linux without Root

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

Compiling on Linux without Root

Postby creadak » Thu Feb 02, 2012 6:14 am

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?
creadak
 
Posts: 4

Re: Compiling on Linux without Root

Postby Charles » Thu Feb 02, 2012 11:53 pm

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.
Charles
 
Posts: 2515
Location: Los Angeles, CA

Re: Compiling on Linux without Root

Postby creadak » Fri Feb 03, 2012 2:41 am

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
creadak
 
Posts: 4

Re: Compiling on Linux without Root

Postby Charles » Fri Feb 03, 2012 12:19 pm

Thanks for the update. Good luck on your assignment.
Charles
 
Posts: 2515
Location: Los Angeles, CA


Return to Discussion

Who is online

Users browsing this forum: No registered users and 23 guests