User forums > Help

How can I install Code::Blocks on Linux without root access?

(1/2) > >>

minno:
I've been following the wiki guide here, and I'm stuck on making wx.  I'm trying to install it on a computer where I don't have root access, so it fails when I try to use the command "make install", since it can't create the directory /opt/wx.  What do I have to change in the Makefile to be able to install it in my home directory instead?

Jenna:
For wx you don't need make install, just make is enough.
If you use the wx-config created in the root of the build-directory, it will work.

For C::B you can use the --prefix= parameter if you run configure, to chose the base-directory of your installation.

By the way, this should also work for wxwidgets, but as written before it's not necessarily needed.

minno:

--- Quote from: jens on July 25, 2012, 10:04:37 pm ---For wx you don't need make install, just make is enough.
If you use the wx-config created in the root of the build-directory, it will work.

For C::B you can use the --prefix= parameter if you run configure, to chose the base-directory of your installation.

By the way, this should also work for wxwidgets, but as written before it's not necessarily needed.

--- End quote ---

I don't have much experience with Linux.  So you're saying that in the part of the guide where it says to do: "../config --stuff" followed by "make", I don't need to do the next two steps, "su" and "make install"?

Jenna:

--- Quote from: minno on July 25, 2012, 11:11:03 pm ---
--- Quote from: jens on July 25, 2012, 10:04:37 pm ---For wx you don't need make install, just make is enough.
If you use the wx-config created in the root of the build-directory, it will work.

For C::B you can use the --prefix= parameter if you run configure, to chose the base-directory of your installation.

By the way, this should also work for wxwidgets, but as written before it's not necessarily needed.

--- End quote ---

I don't have much experience with Linux.  So you're saying that in the part of the guide where it says to do: "../config --stuff" followed by "make", I don't need to do the next two steps, "su" and "make install"?

--- End quote ---
For wxWidgets : yes.
The only thing you need to do is call the wx-config in t the build-dir directly (with full or relative path) or add the path to it to your own PATH environment variable.

minno:
New problem:  I can't run the command "ldconfig" without root privileges.  Is there any workaround for this?  Is there a way that I can manually instruct the linker to look in the correct folders to find wx while I'm compiling codeblocks?

Navigation

[0] Message Index

[#] Next page

Go to full version