Author Topic: install Code::Blocks on fc7  (Read 2857 times)

loskiller

  • Guest
install Code::Blocks on fc7
« 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: install Code::Blocks on fc7
« Reply #1 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.


loskiller

  • Guest
Re: install Code::Blocks on fc7
« Reply #2 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.

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 131
Re: install Code::Blocks on fc7
« Reply #3 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 :-)
Code::Blocks package maintainer for Fedora and EPEL