Hi,

I am trying to install Gitorious on Redhat 5. I am following these 
instructions: https://gitorious.org/gitorious/pages/Rhel_Installation

One of the steps is: rake db:create RAILS_ENV=production

That command fails with the foll error message:

------
[ gitorious ] sudo  rake db:create RAILS_ENV=production
Could not find libdolt-0.33.14 in any of the sources
Run `bundle install` to install missing gems.
------


When I ran 'bundle install --verbose' it fails with:

-----
0:  makeup (0.4.4) from 
/usr/local/lib/ruby/gems/2.0.0/specifications/makeup-0.4.4.gemspec

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
checking for gmake... yes
checking for cmake... yes
 -- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF 
-DCMAKE_C_FLAGS=-fPIC
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'zlib', required by 'libgit2', not found
 -- /usr/bin/gmake
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/ruby
        --with-git2-dir
        --without-git2-dir
        --with-git2-include
        --without-git2-include=${git2-dir}/include
        --with-git2-lib
        --without-git2-lib=${git2-dir}/
extconf.rb:16:in `sys': ERROR: '/usr/bin/gmake' failed (RuntimeError)
        from extconf.rb:59:in `block (2 levels) in <main>'
        from extconf.rb:54:in `chdir'
        from extconf.rb:54:in `block in <main>'
        from extconf.rb:51:in `chdir'
        from extconf.rb:51:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in 
/usr/local/lib/ruby/gems/2.0.0/bundler/gems/rugged-5f1b6d177132 for inspection.
Results logged to 
/usr/local/lib/ruby/gems/2.0.0/bundler/gems/extensions/x86_64-linux/2.0.0-static/rugged-0.19.0/gem_make.out
...
An error occurred while installing rugged (0.19.0), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.19.0'` succeeds before bundling.
-----------


So, I did do 'sudo gem install rugged -v '0.19.0'` and it works:

--------
[ gitorious ]  sudo gem install rugged -v '0.19.0'
Building native extensions.  This could take a while...
Successfully installed rugged-0.19.0
Parsing documentation for rugged-0.19.0
unable to convert "\x80" from ASCII-8BIT to UTF-8 for 
../../extensions/x86_64-linux/2.0.0-static/rugged-0.19.0/rugged/rugged.so, 
skipping
unable to convert "\x80" from ASCII-8BIT to UTF-8 for lib/rugged/rugged.so, 
skipping
1 gem installed
---------


I tried 'sudo bundle install --verbose' again but it fails the same way.

I then created a /usr/lib/pkgconfig/zlib.pc file and did a setenv of the 
PKG_CONGIF_PATH to add /usr/lib/pkgconfig.

zlib.pc:

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include
sharedlibdir=/usr/lib
Name: zlib
Description: zlib compression library
Version: 1.2.3
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}
I ran 'sudo bundle install --verbose' and it fails the same way...

The 'Gemfile' is in the main gitorious directory.

Any suggestions?

Regards
Rajesh

-- 
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to