[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gems/Rails issues on etch



On 08/03/07 at 08:56 -0500, Bakki Kudva wrote:
> Hi Rubyists,
> 
> I just upgraded one of my machines to etch to see what impact it would
> have on Ruby and in particular Rails development.
> 
> I am finding that my gem/Rails env is broken. For example when I try
> and install the rmagick gem I get:

Which command did you type, exactly ?

> configure:1667: $? = 0
> configure:1669: gcc -v </dev/null >&5
> Using built-in specs.
> Target: i486-linux-gnu
> Configured with: ../src/configure -v
> --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
> --enable-shared --with-system-zlib --libexecdir=/usr/lib
> --without-included-gettext --enable-threads=posix --enable-nls
> --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
> --enable-libstdcxx-debug --enable-mpfr --with-tune=i686
> --enable-checking=release i486-linux-gnu
> Thread model: posix
> gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
> configure:1672: $? = 0
> configure:1674: gcc -V </dev/null >&5
> gcc: '-V' option must have argument
> configure:1677: $? = 1
> configure:1700: checking for C compiler default output file name
> configure:1703: gcc    conftest.c  >&5
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
> configure:1706: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> |
> | #define PACKAGE_NAME "RMagick"
> | #define PACKAGE_TARNAME "RMagick-1.15.4.tar.gz"
> | #define PACKAGE_VERSION "1.15.4"
> | #define PACKAGE_STRING "RMagick 1.15.4"
> | #define PACKAGE_BUGREPORT "rmagick@rubyforge.org"
> | /* end confdefs.h.  */
> |
> | int
> | main ()
> | {
> |
> |   ;
> |   return 0;
> | }
> configure:1745: error: C compiler cannot create executables
> See `config.log' for more details.

What's the content of config.log ?

> So it appears that gcc 4.1 does not like this gem or vice versa.

Very unlikely.

> I am finding the same with the mongrel gem.
> 
> 1: Is there a problem with gcc 4.1 and gems which need compilation,
> Should I use gcc-3.x ?

Nothing I know about.

> 2: Is there a fundamental problem with using the Debian rubygems vs.
> compiling it?

You have to install the correct packages needed to build that one.

> 3: Is there a path problem with the Debian rubygems? - because mongrel
> though it complained about gcc did complete and install but I cannot
> invoke it with mongrel_rails start which gives me 'not found' error.
> 
> I know there are probably a lot of overlapping issues here, I am just
> trying to sort them out and am at a loss where to begin. I would very
> much appreciate any pointers and suggestions.
-- 
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |



Reply to: