Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorteal
    • CommentTimeJul 11th 2008 edited
     permalink
    Hi,

    I have tried to install Clocking IT on my server, but can't run setup.rb. I have run following command


    # gem install rmagick -r
    Building native extensions. This could take a while...
    Successfully installed rmagick-2.5.1
    1 gem installed


    But still I get following


    # ruby setup.rb
    Verifying dependencies...
    ** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
    Please install required Ruby Gems:
    sudo gem install rmagick -r

    rmagick requires ImageMagick. If you're unable to install ImageMagick 6.3.0+, which the latest
    version of rmagick requires, please install version 1.5.14 instead:
    sudo gem install rmagick -v 1.5.14 -r


    Any ideas how I can resolve this?
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    What does the following in an irb session print?require 'RMagick'
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    As inerlends@erlends-desktop:~/src/ruby/cit$ irb
    >> require 'RMagick'
    • CommentAuthorteal
    • CommentTimeJul 11th 2008
     permalink

    irb(main):001:0> require 'RMagick'
    LoadError: no such file to load -- RMagick
    from (irb):1:in `require'
    from (irb):1
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    Smells a bit like a broken ruby-gems installation. How did you install rubygems?

    -- Erlend
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    I've had a similar problem some time earlier with a different project, where the gem command operated on /usr/lib/ruby/gems/1.8/gems/, while the ruby program operated on /var/lib/ruby/gems/1.8/gems/. It was caused by using the Ubuntu packaged gems version, and then updating the rubygems version via rubygems instead of waiting for Ubuntu to package it (I think, it's been a while)

    -- Erlend
    • CommentAuthorteal
    • CommentTimeJul 11th 2008
     permalink
    I downloaded rubygems-1.2.0 from rubyforge and used setup.rb script.
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    This wouldn't happen to be on Debian/Ubuntu?
    • CommentAuthorteal
    • CommentTimeJul 11th 2008
     permalink
    Actually I have tried to different servers which have different version of CentOS and with both I get same result.
    • CommentAuthoradmin
    • CommentTimeJul 11th 2008
     permalink
    Could you possibly join me in the General Chatroom inside ClockingIT? Might be easier that way.

    -- Erlend
    • CommentAuthorguan
    • CommentTimeMar 2nd 2009 edited
     permalink
    i got the same msg:
    is there anybody install the newest version successful with CentOS ?

    I make ruby and gem install rails and other module for cit
    but i got a error
    $./setup.rb
    Verifying dependencies...
    /usr/local/lib/ruby/gems/1.9.1/gems/fastercsv-1.4.0/lib/fastercsv.rb:10:in `require': /usr/local/lib/ruby/gems/1.9.1/gems/fastercsv-1.4.0/lib/faster_csv.rb:1570: syntax error, unexpected keyword_nil, expecting keyword_end (SyntaxError)
    from /usr/local/lib/ruby/gems/1.9.1/gems/fastercsv-1.4.0/lib/fastercsv.rb:10:in `'
    from ./setup.rb:23:in `require'
    from ./setup.rb:23:in `block in
    '
    from ./setup.rb:21:in `each'
    from ./setup.rb:21:in `
    '

    my gem output :

    gem list

    *** LOCAL GEMS ***

    actionmailer (2.2.2)
    actionpack (2.2.2)
    activerecord (2.2.2)
    activeresource (2.2.2)
    activesupport (2.2.2)
    daemons (1.0.10)
    echoe (3.1.1)
    eventmachine (0.12.4)
    fastercsv (1.4.0)
    gchartrb (0.8)
    gem_plugin (0.2.3)
    highline (1.5.0)
    hoe (1.9.0)
    icalendar (1.1.0)
    rails (2.2.2)
    rake (0.8.3)
    RedCloth (4.1.9)
    rmagick (2.9.1)
    rubyforge (1.0.3)
    test-spec (0.10.0)
    tzinfo (0.3.12)
    ZenTest (3.11.1)


    is there some trouble with clockingit with fastercsv (1.4.0)
    • CommentAuthoradmin
    • CommentTimeMar 2nd 2009
     permalink
    Ruby 1.9.1 isn't supported at all, so please try 1.8.x instead.

    -- Erlend
    • CommentAuthorguan
    • CommentTimeMar 3rd 2009 edited
     permalink
    I try this process on CentOS 5.2
    #2.6.18-028stab053.17-ent #1 SMP Mon Jun 9 22:08:38 MSD 2008 i686 i686 i386 GNU/Linux

    INSTALL Ruby 1.8.6 from yum , repo repo info at centos site
    # yum --disablerepo=rpmforge,base,updates,addons,extras --enablerepo=ruby install ruby ruby-irb ruby-rdoc
    ...
    Installed: ruby-rdoc.i686 0:1.8.6.111-1
    Dependency Installed: ruby.i686 0:1.8.6.111-1 ruby-irb.i686 0:1.8.6.111-1 ruby-libs.i686 0:1.8.6.111-1
    Complete!
    ..
    INSTALL GEM 0.9.5 from tarball

    GET cit FROM GIT repo

    RUN setup.rb
    $ruby setup.rb
    it said, need gams:
    Please install required Ruby Gems:
    sudo gem install fastercsv mongrel gchartrb rake RedCloth tzinfo echoe test-spec eventmachine icalendar ferret json hoe rmagick ZenTest -r
    TRY gem install
    # gem install fastercsv mongrel gchartrb rake RedCloth tzinfo echoe test-spec eventmachine icalendar ferret json hoe rmagick ZenTest -r
    ###some successed some in trouble
    ...
    ...
    Successfully installed gchartrb-0.8
    Successfully installed rake-0.8.3
    ERROR: Error installing RedCloth:
    RedCloth requires RubyGems version >= 1.2
    Successfully installed tzinfo-0.3.12
    ERROR: Error installing echoe:
    echoe requires RubyGems version >= 1.2
    Successfully installed test-spec-0.10.0
    Building native extensions. This could take a while...
    ERROR: Error installing eventmachine:
    ERROR: Failed to build gem native extension.


    that is strange, echoe \ RedCloth said it need RubyGems version >= 1.2 , but in the vmware-distributed-cit , the gems 's version is only 0.9.4
    so i UPGRADE TO Gems 1.3.1, and gem install those gems ,
    but always
    " Please install required Ruby Gems:
    sudo gem install rmagick -r "


    let me try make rmagick from tarball, that is my final weapon, good luck for myself ...
    • CommentAuthorguan
    • CommentTimeMar 3rd 2009
     permalink
    thank the Tux and The Red Devil

    lucky :)

    when some error below , successful compile RMagick src , after
    ldconfig /usr/local/lib

    compile finished and clockingit 's script worked

    cit$ ruby setup.rb
    run successful
    ###################3
    #### ERROR MSG WHEN COMPILE RMagick

    setup.rb: entering post-setup phase...
    post-setup.rb: setting up documentation...
    /usr/bin/ruby -I /root/rpms/citproj/RMagick-2.9.1/./lib -I /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick InitialCoords.rb
    /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick/RMagick2.so: libMagickCore.so.2: cannot open shared object file: No such file or directory - /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick/RMagick2.so (LoadError)
    from /root/rpms/citproj/RMagick-2.9.1/./lib/RMagick.rb:11
    from /root/rpms/citproj/RMagick-2.9.1/./lib/rvg/rvg.rb:31:in `require'
    from /root/rpms/citproj/RMagick-2.9.1/./lib/rvg/rvg.rb:31
    from InitialCoords.rb:1:in `require'
    from InitialCoords.rb:1
    post-setup.rb: InitialCoords.rb example returned error code 256
    /usr/bin/ruby -I /root/rpms/citproj/RMagick-2.9.1/./lib -I /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick NewCoordSys.rb
    /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick/RMagick2.so: libMagickCore.so.2: cannot open shared object file: No such file or directory - /root/rpms/citproj/RMagick-2.9.1/./ext/RMagick/RMagick2.so (LoadError)
    from /root/rpms/citproj/RMagick-2.9.1/./lib/RMagick.rb:11
    from /root/rpms/citproj/RMagick-2.9.1/./lib/rvg/rvg.rb:31:in `require'
    from /root/rpms/citproj/RMagick-2.9.1/./lib/rvg/rvg.rb:31
    from NewCoordSys.rb:1:in `require'
    from NewCoordSys.rb:1
    post-setup.rb: NewCoordSys.rb example returned error code 256