User forums > Help
Ubuntu 13.04, codeblocks would not compile.
Jenna:
What exactly do aou have in "Settings -> Environment -> General settings -> Shell to run commands in:" ?
--- Code: ---/bin/sh
--- End code ---
or
--- Code: ---/bin/sh -c
--- End code ---
The -c is a must !
By the way on systems with bash as default shell (as on Ubuntu [and many more] as far as I know) /bin/sh is just a symlink to /bin/bash so there should not be a difference.
vasilenko93:
Thank you very much, finally works. Really odd that by default it comes with /bin/sh not /bin/sh -c
You are the best jens.
Jenna:
The default (when created from scratch, e.g. by deleting the default.conf or using a different personality) is "/bin/sh -c".
The default is hardcoded in globals.cpp:58 as follows:
--- Code: ---const wxString DEFAULT_CONSOLE_SHELL = _T("/bin/sh -c");
--- End code ---
If this is really not the default for the C::B from Ubuntu's repo, they must have changed it.
In this case, please file a bug-report against the Ubuntu bug-tracker.
Wyrm:
Looks like you guys have already resolved the issue and Jens's idea was correct. Good call.
So what's the conclusion? Everyone on Ubuntu and derivatives must go to environment settings and add "-c" or compile C::B from source?
Jenna:
--- Quote from: Wyrm on August 21, 2013, 05:28:14 am ---Looks like you guys have already resolved the issue and Jens's idea was correct. Good call.
So what's the conclusion? Everyone on Ubuntu and derivatives must go to environment settings and add "-c" or compile C::B from source?
--- End quote ---
--- Quote from: jens on August 20, 2013, 10:24:27 pm ---The default (when created from scratch, e.g. by deleting the default.conf or using a different personality) is "/bin/sh -c".
The default is hardcoded in globals.cpp:58 as follows:
--- Code: ---const wxString DEFAULT_CONSOLE_SHELL = _T("/bin/sh -c");
--- End code ---
If this is really not the default for the C::B from Ubuntu's repo, they must have changed it.
In this case, please file a bug-report against the Ubuntu bug-tracker.
--- End quote ---
If the Ubuntu-maintainers really changed this (I can't believe this, because it would be to stupid, on the other hand it's Ubuntu ... ;) ), there would be no other way to fix this, until they fix this.
Please try to start C::B with -p test parameter from commandline (or any other new personality) and check the default settings.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version