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.

    • CommentAuthorreynierpm
    • CommentTimeNov 7th 2008 edited
     permalink
    Hi every:
    I'm new to this application so I have a lot of questions to do but I'll start from the first. I'm trying to install Clocking IT 0.99.3 in a Ubuntu 8.10 Server. When I run this:
    ruby setup.rb
    I get this error's:

    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest mongrel RedCloth ferret json eventmachine 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


    Then I try to install this gems directly from internet doing this:
    gem install RedCloth

    But this send me this error:

    Building native extensions. This could take a while...
    ERROR: Error installing RedCloth:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.8 extconf.rb install RedCloth
    creating Makefile

    make
    sh: make: not found


    Gem files will remain installed in /var/lib/gems/1.8/gems/RedCloth-4.1.0 for inspection.
    Results logged to /var/lib/gems/1.8/gems/RedCloth-4.1.0/ext/redcloth_scan/gem_make.out


    And I don't know how to fix it. Can any help me?
    Cheers and thanks in advance
    • CommentAuthoradmin
    • CommentTimeNov 8th 2008
     permalink
    make
    sh: make: not found


    Try something like
    sudo apt-get build-essential

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 8th 2008 edited
     permalink
    Ok this solve almost every problem but now when I trying to install the gem rmagick I get this errors:

    gem install rmagick
    Building native extensions. This could take a while...
    ERROR: Error installing rmagick:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.8 extconf.rb install rmagick
    checking for Ruby version >= 1.8.2... yes
    checking for cc... yes
    checking for Magick-config... no
    Can't install RMagick 2.7.1. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

    *** 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/bin/ruby1.8


    Gem files will remain installed in /var/lib/gems/1.8/gems/rmagick-2.7.1 for inspection.
    Results logged to /var/lib/gems/1.8/gems/rmagick-2.7.1/ext/RMagick/gem_make.out

    How can I solve it?
    Cheers and thanks again
    • CommentAuthoradmin
    • CommentTimeNov 9th 2008
     permalink
    install libmagic9-dev or whatsitsname. It's the development package for ImageMagick. I don't have a machine in front of me to check what the proper name is, but I can help you tomorrow if you can't find it.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 12th 2008
     permalink
    Well I install the library as you suggest me and now I have another problem. I try this:

    > ruby setup.rb
    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest RedCloth -r

    As you can see here I need to install ZenTest and RedCloth. I execute the command

    > sudo gem install ZenTest RedCloth -r

    And aparently all it's fine:

    Successfully installed ZenTest-3.11.0
    Building native extensions. This could take a while...
    Successfully installed RedCloth-4.1.0
    2 gems installed
    Installing ri documentation for ZenTest-3.11.0...
    Installing ri documentation for RedCloth-4.1.0...

    No definition for redcloth_to
    Installing RDoc documentation for ZenTest-3.11.0...
    Installing RDoc documentation for RedCloth-4.1.0...

    No definition for redcloth_to

    What I'm doing wrong?
    • CommentAuthoradmin
    • CommentTimeNov 12th 2008
     permalink
    Nothing? Looks like it installed just fine.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 13th 2008
     permalink
    Well see that:

    ruby setup.rb
    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest RedCloth -r


    What you think then?
    • CommentAuthoradmin
    • CommentTimeNov 13th 2008
     permalink
    Seems RedCloth & ZenTest have changed names as of the latest versions. I'll update the script.

    And RedCloth doesn't include it's dependency information in this version, so you'll have to do an additional

    sudo gem install echoe

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 13th 2008
     permalink
    Ok, I do the things as you said me before but still needing ZenTest. I try this:

    gem install echoe


    Successfully installed rubyforge-1.0.1
    Successfully installed highline-1.5.0
    Successfully installed echoe-3.0.2
    3 gems installed
    Installing ri documentation for rubyforge-1.0.1...
    Installing ri documentation for highline-1.5.0...
    Installing ri documentation for echoe-3.0.2...
    Installing RDoc documentation for rubyforge-1.0.1...
    Installing RDoc documentation for highline-1.5.0...
    Installing RDoc documentation for echoe-3.0.2...


    Then I try this:
    ruby setup.rb
    And see what's happen:

    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest -r


    Then I try again to get installed ZenTest
    gem install ZenTest -r

    Successfully installed ZenTest-3.11.0
    1 gem installed
    Installing ri documentation for ZenTest-3.11.0...
    Installing RDoc documentation for ZenTest-3.11.0...


    But when trying to install ClockingIT the same message appears:

    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest -r


    Did you update the install script? What can I do for fix this?
    • CommentAuthoradmin
    • CommentTimeNov 13th 2008
     permalink
    Did you do a git pull? If not, you'll have to wait for the snapshot which will be made tonight.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 15th 2008
     permalink
    I can't use GIT because I access to Internet trough a Proxy Server and this block GIT ports so I have only choice download the snapshot but what snapshot I need? I try to download this one http://repo.clockingit.com/releases/snapshots/cit-081115.tar.gz but when I try to uncompress I get erros and the file is corrupt
    • CommentAuthoradmin
    • CommentTimeNov 16th 2008
     permalink
    Try http://repo.clockingit.com/releases/snapshots/cit-081116.tar.gz - git broke the archiving function for a while.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 18th 2008
     permalink
    Nothing I try with this one and see the errors now:
    gem install zentest -r
    ERROR: could not find gem zentest locally or in a repository


    I check if my Internet connection is OK and it's OK:

    wget www.google.com
    --2008-11-17 19:39:15-- http://www.google.com/
    Connecting to 10.128.50.234:8080... connected.
    Proxy request sent, awaiting response... 302 Moved Temporarily
    Location: http://www.google.com.cu/ [following]
    --2008-11-17 19:39:16-- http://www.google.com.cu/
    Connecting to 10.128.50.234:8080... connected.
    Proxy request sent, awaiting response... 200 OK
    Length: unspecified [text/html]
    Saving to: `index.html'

    [ <=> ] 4,697 --.-K/s in 0.01s

    2008-11-17 19:39:17 (341 KB/s) - `index.html' saved [4697]

    Now what?
    • CommentAuthoradmin
    • CommentTimeNov 18th 2008
     permalink
    It's called ZenTest again, setup.rb was updated once again.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 18th 2008
     permalink
    Nothing, something is wrong here. I downloaded this http://repo.clockingit.com/releases/snapshots/cit-081118.tar.gz wich seem to be the latest snapshot. I run
    ruby setup.rb
    And I get this message:

    Verifying dependencies...
    Please install required Ruby Gems:
    sudo gem install ZenTest -r

    I run again this command:
    gem install ZenTest -r
    And everything is fine "aparently":

    Successfully installed ZenTest-3.11.0
    1 gem installed
    Installing ri documentation for ZenTest-3.11.0...
    Installing RDoc documentation for ZenTest-3.11.0...

    But when I go back and try again the command:
    ruby setup.rb
    I get the same dependency error: ZenTest is not installed
    • CommentAuthoradmin
    • CommentTimeNov 18th 2008
     permalink
    Righto...

    Could you paste the output of :

    irb
    require 'rubygems'
    require 'zentest'
    require 'ZenTest'


    along with a

    gem -v
    gem list zentest
    gem list ZenTest


    Something is fishy...

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 19th 2008
     permalink
    The first output for this:

    irb
    require 'rubygems'
    require 'zentest'
    require 'ZenTest'



    irb
    irb(main):001:0> require 'rubygems'
    => true
    irb(main):002:0> require 'zentest'
    Gem::LoadError: Could not find RubyGem hoe (>= 1.8.0)

    from /usr/lib/ruby/1.8/rubygems.rb:578:in `report_activate_error'
    from /usr/lib/ruby/1.8/rubygems.rb:134:in `activate'
    from /usr/lib/ruby/1.8/rubygems.rb:158:in `activate'
    from /usr/lib/ruby/1.8/rubygems.rb:157:in `each'
    from /usr/lib/ruby/1.8/rubygems.rb:157:in `activate'
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from (irb):2
    from /var/lib/gems/1.8/specifications/highline-1.5.0.gemspec:23
    irb(main):003:0> require 'ZenTest'
    LoadError: no such file to load -- ZenTest
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from (irb):3
    from /var/lib/gems/1.8/specifications/highline-1.5.0.gemspec:23
    irb(main):004:0>


    The second output from this:

    gem -v
    gem list zentest
    gem list ZenTest



    gem -v
    1.2.0

    gem list zentest
    *** LOCAL GEMS ***
    ZenTest (3.11.0)

    gem list ZenTest
    *** LOCAL GEMS ***
    ZenTest (3.11.0)
    • CommentAuthoradmin
    • CommentTimeNov 19th 2008
     permalink
    There we go... For some reason, your gem installs aren't pulling in the additional dependencies like they're supposed to.

    sudo gem install hoe

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 19th 2008
     permalink
    Now the error is other:

    Initialize database schema [n]:

    Loading Rails to create account...
    /root/cit-081118/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log': Mysql::Error: Table 'clocking_it.users' doesn't exist: SHOW FIELDS FROM `users` (ActiveRecord::StatementInvalid)
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:302:in `execute'
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:433:in `columns'
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/base.rb:1149:in `columns'
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/base.rb:2616:in `attributes_from_column_definition_without_lock'
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/locking/optimistic.rb:55:in `attributes_from_column_definition'
    from /root/cit-081118/vendor/rails/activerecord/lib/active_record/base.rb:2137:in `initialize'
    from setup.rb:257:in `new'
    from setup.rb:257
    • CommentAuthoradmin
    • CommentTimeNov 19th 2008
     permalink
    Please initialize the database schema by answering yes on the question above the error:

    Initialize database schema [n]:

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 19th 2008
     permalink
    Ok, now it works but I have some few questions:
    1) When I finish installing CIT the script said me that I need to run this commands:

    ./script/ferret_server -e production start
    nohup ./script/push_server &
    ./script/server production

    So the question here is, exists any way to autostart this application? I mean as a daemon or something else?

    2) Can CIT integrate with Subversion or GIT or Bazaar or any other versioning software?
    3) Is CIT pluggable? I means if exists any plugins that offers me a few functionalities?

    Regards
    • CommentAuthoradmin
    • CommentTimeNov 19th 2008
     permalink
    1) Only if you or someone else contributes some init scripts for whatever OS you're running. I never restart my server, so I've never had the need to make some auto-startup thingie, and if it crashes I need to reboot it manually anyways.
    2) I have some SVN/CVS integration, but it's not enabled in the UI.
    3) Not really. I'd like at some point to provide both an API and a plugin structure, but I haven't gotten around to it yet.

    -- Erlend
    • CommentAuthorreynierpm
    • CommentTimeNov 19th 2008
     permalink
    Hi Erlend:
    1) I'm using Ubuntu Server 8.10 but I don't know how to build this scripts I mean I do not know if I need Bash or another programming language. What you suggest me?
    2) Can I have or know how to activate this SVN/CVS integration?
    3) Ok, I will wait for this because I'm impressed with CIT
    Regards
    • CommentAuthoradmin
    • CommentTimeNov 20th 2008
     permalink
    1) Have a look in /etc/init.d/ for examples of how Ubuntu does it.
    2) It hasn't been tested for ages, so it's probably broken and most likely requires some work to do anything. I'll see if I can get it going again at some point.

    -- Erlend