User forums > Help

cannot find wx-config when ./configure

<< < (2/3) > >>

oBFusCATed:
You don't have to use sudo for configure only for "make install" and this is if you don't change the prefix (--prefix parameter on the configure script).

About the wx-config, I guess the folder where wx-config is placed is in the PATH variable of your use and not in the path variable of the root user.
Why don't you install a system libwxgtk2.8 and libwxgtk2.8-dev using apt-get?

lxr5109:
Oh, yes,  Thank you very much.

it is because of the PATH. What confused me is that "/etc/profile" has no effect on root! I must do "source" manually and then root can find wx-config, and ./configure can work.  Or I should add the path to "/root/.bashrc".

If I don't use sudo for configure, it will give an error, which is "permission denied".

Because I use some early version of ubuntu 10.04, there is only CB v8.02  and wxWidget v2.8.0 in Synaptic Package Manage. While I'd like to install CB v13.12 and the source files downloaded from SourceForge need wxWidget V2.8.12,  so I have to install the wxWidget by myself. Although the wiki says all version above 2.8.0 are OK (except 2.8.3), in fact configure will output errors if the version is under 2.8.12.

BlueHazzard:
I would recommend a newer version than 13.12...you can use 16.01 or even the svn trunk. they are all stable enough if you use wx2.8


--- Quote ---If I don't use sudo for configure, it will give an error, which is "permission denied".
--- End quote ---
this should not be the case...For what do you don't have the permission?

greetings

Jenna:

--- Quote from: BlueHazzard on June 14, 2016, 11:45:23 am ---I would recommend a newer version than 13.12...you can use 16.01 or even the svn trunk. they are all stable enough if you use wx2.8


--- Quote ---If I don't use sudo for configure, it will give an error, which is "permission denied".
--- End quote ---
this should not be the case...For what do you don't have the permission?

greetings

--- End quote ---

This happens when you once have run it with root-rights.
"chown <yourusername>.<yourgroup> -R <path/to/sources>" should fix this.

lxr5109:

--- Quote from: BlueHazzard on June 14, 2016, 11:45:23 am ---I would recommend a newer version than 13.12...you can use 16.01 or even the svn trunk. they are all stable enough if you use wx2.8

--- End quote ---

Thank you, I will try 16.01. In fact I have use 10.05 for a long time. But sometimes it would crashed and would be slower and slower when debugging, so I want to use a newer version.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version