
why and how on earth are you trying to run codeblocks as root?Yczo wrote:Hello.
I can't use codeblocks without being root (well realy I can't compile). I know that this is dangerous.
you do know C and C++ are languages and codeblocks is an IDE right? you absolutely don't need codeblocks to program in either C nor C++.Yczo wrote:Would be someone so kind to tell me what must I do to use it like a normal user to start to learn c/c++?

so your real question is why I cannot run codeblocks as normal user/Yczo wrote:Yes, I know that, but is very comfortable compile and execute the programs directly from the Ide. I don't know if I can directly compile from the other GUIS. In the other hand, i found atractive codeblocks.
I only want debug and compile the code directly from IDE
Regards and thank you for answer.


Code: Select all
gcc -v
which gcc
gcc-config -l

this isn't codeblocks issue, there is a problem in your system.Yczo wrote:Hello. In first place, thanks for answer.
Yes, i have gcc selected on system settings from codeblocks
Loged like user I obtained the next results:
$ eselect wxwidgets list
Available wxWidgets profiles:
[1] gtk2-unicode-release-2.8
$ gcc -v
gcc-config: error: could not run/locate 'gcc' //I don't have permisions for use gcc on my user.
$ which gcc
/usr/bin/gcc
$ gcc-config -l
[1] avr-4.4.5 *
[2] x86_64-pc-linux-gnu-4.5.4 *
I don't know how to set permissions to allow at my user the use of gcc. The user does not must have permission for compile and install programs from portage
Regards.

Code: Select all
eselect wxwidgets set 1
su -c "gcc-config 2"Yczo wrote:Ok, I did all your recommendations. I have the next results now
Usando especificaciones internas.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.4/lto-wrapper
Objetivo: x86_64-pc-linux-gnu
Configurado con: /var/tmp/portage/sys-devel/gcc-4.5.4/work/gcc-4.5.4/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.4 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.4/python --enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.4 p1.0, pie-0.4.7'
Modelo de hilos: posix
gcc versión 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7)
$ eselect wxwidgets list
Available wxWidgets profiles:
[1] gtk2-unicode-release-2.8 *
but i continue without can buld my programs.
all this was run as root.
if I try to obtain the verbose info of gcc like my user, obtain this
$ gcc -v
gcc-config: error: could not run/locate 'gcc'
$ gcc-config 2
* gcc-config: need write access to /
Must my user be added to a special group? How can give permissions?
Greetings.

what is the output of gcc -v?Yczo wrote:No way!
I did it, but continues without want compile like user![]()
codeblocks say : gcc-config: error: could not run/locate 'gcc'
But thank you for all your help
Code: Select all
$ ls -l /usr/bin/gcc


