Code::Blocks Forums

User forums => Help => Topic started by: loskiller on November 22, 2007, 09:08:19 am

Title: install Code::Blocks on fc7
Post by: loskiller on November 22, 2007, 09:08:19 am
Hello,

I've installed wxwidgets 2.8.6 and run ./bootsrap
then hit "bash:./bootstrap   /bin/sh^M   bad   interpreter".
but I find sh in /bin. what can I do?
Title: Re: install Code::Blocks on fc7
Post by: Jenna on November 23, 2007, 12:21:12 am
You have dos/windows line-endings.
Linux tries to find an interpreter called "/bin/sh^M", that does not exist.
Normally if you download a svn-version this should not happen (it does not happen for me at least).
There are some of the .cpp and .h files with dos/windows line-endings, what that doesn't matter. But shellscripts or for example .am-files might be critical.

There is a commandline tool called dos2unix that can be used to convert the line-endings.

On debian it's in a packet calle "tofrodos". I don't know, where you can find it on FC7.

With the tool you can run
Code
find . -exec dos2unix {} \;
from the codeblocks-source root directory.

Title: Re: install Code::Blocks on fc7
Post by: loskiller on November 23, 2007, 03:49:20 am
I convert it to Unix, but I have a new problem.
"Autoconf 2.50 or above is required."
my autoconf is 2.61.
Title: Re: install Code::Blocks on fc7
Post by: SharkCZ on November 23, 2007, 04:23:24 pm
If an older nightly build is sufficient, then "yum install codeblocks codeblocks-contrib" is all you need. I must publish a newer one :-)