I'm trying to follow the instructions in the CB Wiki for installing
on Linux. (ubuntu 510)
I'm getting the following err:
pecan@herman:~$ cd devel
pecan@herman:~/devel$ dir
wxGTK-2.6.2.tar.gz
pecan@herman:~/devel$ tar zxf wxGTK-2.6.2.tar.gz
pecan@herman:~/devel$ dir
wxGTK-2.6.2 wxGTK-2.6.2.tar.gz
pecan@herman:~/devel$ tar zxf wxGTK-2.6.2.tar.gz
pecan@herman:~/devel$ dir
wxGTK-2.6.2 wxGTK-2.6.2.tar.gz
pecan@herman:~/devel$ mkdir build_gtk2_shared_monolithic_unicode
pecan@herman:~/devel$ cd build_gtk2_shared_monolithic_unicode
pecan@herman:~/devel/build_gtk2_shared_monolithic_unicode$ ../configure --prefix=/opt/wx/2.6 \
> --enable-xrc \
> --enable-monolithic \
> --enable-unicode
bash: ../configure: No such file or directory
pecan@herman:~/devel/build_gtk2_shared_monolithic_unicode$
what happened ?
Does it mean no such file as "configure" or no such file as what??
thanks
pecan
I forget where is the "configure" script under wxGTK and I am now in Windows.
Check whether there is a file named "configure" under the folder ~/devel/ .., if not , use the following command to find the "configure" script location
find ~/devel -name configure
after getting the location , change folder to that location and key in the below command
./configure --prefix=/opt/wx/2.6 --enable-xrc --enable-monolithic --enable-unicode
(take note only 1 dot in front)
hope it helps.
Ok thanks, it got a little further I think, maybe
Does the following mean I dont have a compiler on ubuntu?
Or does it mean the path is wrong??
pecan@herman:~$ find ~/devel -name configure
/home/pecan/devel/wxGTK-2.6.2/configure
/home/pecan/devel/wxGTK-2.6.2/src/expat/configure
pecan@herman:~$ cd /home/pecan/devel/wxGTK-2.6.2/src/expat/configure
bash: cd: /home/pecan/devel/wxGTK-2.6.2/src/expat/configure: Not a directory
pecan@herman:~$ cd /home/pecan/devel/wxGTK-2.6.2/src/expat/
pecan@herman:~/devel/wxGTK-2.6.2/src/expat$ ./configure --prefix=/opt/wx/2.6 --enable-xrc --enable-monolithic --enable-unicode
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
pecan@herman:~/devel/wxGTK-2.6.2/src/expat$
thanks
pecan
wx-config is a good tool. The important thing is that you only have one wx-config utility in your path (which I usually do about by just deleting/renaming/moving the one from /usr/local/bin). Now that that is done you have to move around the actual files that wx-config uses to supply the build options. I believe they are usually of the form gtk2-<version>-<anis/unicode>-<debug/release>, but I could have the exact order messed up. They are always installed to <install_dir>/lib/wx/config, so you just have to make sure that no matter where you install your mutiple versions of wx-widgets to all the config files are in the one location wx-config looks. So if wx-config is in /usr/local/bin then put all your config files (regardless of where you actually installed the library) into /usr/local/lib/wx/conifg. Now you specify the proper options to wx-config and it will give the right library.
For example:
# Get a unicode debug build
wx-config --unicode --debug --libs
# Get an ANSI release build
wx-config --unicode=no --libs
# I haven't used version before, but this should do it
# Get wx 2.5 in ANSI debug form
wx-config --version=2.5 --unicode=no --debug --libs
I am not positive but i believe wx-config defaults to the highest version number you have, then the unicode build if you have one, then release if you have that.
EDIT: Thats wierd, I just tried this the second time and it worked.
MAGIC!!
I'm trying to checkout onto ubuntu the HEAD svn just as I did on windows.
What am I doing wrong?
thanks
pecan
pecan@herman:~/devel$ svn --username me --password mypassword checkout https://svn.berlios.de/svnroot/repos/codeblocks/trunk
Error validating server certificate for 'https://svn.berlios.de:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: *.berlios.de
- Valid: from Sep 26 19:24:06 2005 GMT until Sep 26 19:24:06 2006 GMT
- Issuer: BerliOS, FhG FOKUS, Berlin, Berlin, DE
- Fingerprint: be:b3:9b:44:3c:c9:2e:ce:06:97:d0:35:36:e6:21:3a:1c:c1:55:ac
(R)eject, accept (t)emporarily or accept (p)ermanently? p
svn: PROPFIND request failed on '/svnroot/repos/codeblocks/trunk'
svn: PROPFIND of '/svnroot/repos/codeblocks/trunk': Server certificate verification failed: issuer is not trusted (https://svn.berlios.de)
pecan@herman:~/devel$
Just type:
svn checkout svn://svn.berlios.de/codeblocks/trunk codeblocks-svn
"codeblocks-svn" is the directory where the repository will be saved to, without this parameter it will be saved to the current directory, I think (I've never tested it). In your case with "codeblocks-svn" it will be saved to "~/devel/codeblocks-svn".
The thing you do wrong is that you're logging in the svn server (with a username "me" that won't exist). You only need to log in when you're a developer.
EDIT: Got my answer. Did a "sudo make install" and it worked.
I think we have to write a ubuntu only wiki page for all this.
// -------------End Edit -------------------------------------------
I'm getting the following errs trying to do a ubuntu 510 codeblocks
make install
Does this mean I should do a "sudo make install" instead?
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
[i]this line deleted because it cause an apache post error[/i]
'console_runner' '/usr/local/bin/console_runner'
/usr/bin/install -c console_runner /usr/local/bin/console_runner
/usr/bin/install: cannot create regular file
`/usr/local/bin/console_runner': Permission denied
make[4]: *** [install-binPROGRAMS] Error 1
make[4]: Leaving directory
`/home/pecan/devel/trunk/src/tools/ConsoleRunner'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/pecan/devel/trunk/src/tools/ConsoleRunner'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/pecan/devel/trunk/src/tools'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/pecan/devel/trunk/src'
make: *** [install-recursive] Error 1
pecan@herman:~/devel/trunk$
thanks
pecan