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.

    • CommentAuthormano
    • CommentTimeOct 15th 2008 edited
     permalink
    Hi all,

    i start with the installation from CIT and i get all packages for my clean and new ubuntu machine.

    the installation instructions are very fine after i start the setup.rb from cit.

    then i create the mysql database with the following script and i can see the CIT DB also in phpmyadmin.

    after that i create the user and all that stuff and also everything is fine.

    but ... after the point: Initialize database schema

    is the beginning of my installation problems ........


    when i choose "n" for no i get this message:


    /cit-0.99.3/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:107:in `initialize': No such file or directory - /tmp/mysql.sock (Errno::ENOENT)


    when i click "y" i get this message:


    Initialize database schema [n]: y
    Initializing database schema
    (in /cit-0.99.3)
    -- create_table("activities", {:force=>true})
    rake aborted!
    No such file or directory - /tmp/mysql.sock

    (See full trace by running task with --trace)

    Loading Rails to create account...
    /cit-0.99.3/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:107:in `initialize': No such file or directory - /tmp/mysql.sock (Errno::ENOENT)

    I have no more ideas how i can find the error for that Problem. Im no Ruby Geek and maybe there is somewhere any MYSQL configuration needed but i really dont know where.

    I really hope that anybody could help me with my problem because i like CIT very much and i wish that it works on my Ubuntu too :-)

    cheers
    Mike
    • CommentAuthormano
    • CommentTimeOct 16th 2008 edited
     permalink
    seems like i get no mysql connection with the setup.rb

    i get also this messages:

    Will create 'cc' with password 'cc' for 'cc' as initial administrator account.

    Enter port for push server [443]:
    Creating config files...
    Creating config/database.yml
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:32: command not found: mysql_config --socket
    Creating config/environment.rb
    Creating config/juggernaut_config.yml
    Creating config/ferret_server.yml


    what can i do ??
    • CommentAuthoradmin
    • CommentTimeOct 16th 2008 edited
     permalink
    Please install mysql-dev if possible.

    If not, either remove the socket: lines from config/database.yml, or point them to your mysql[d].sock file, which usually is in /tmp/mysql.sock, /var/run/mysqld.sock, or /var/db/mysql/mysql.sock

    -- Erlend
    • CommentAuthormano
    • CommentTimeOct 17th 2008
     permalink
    Cool that works !!! Thanx for that ....

    Now i have another Problem when i try to start the app.


    All done!
    ---------

    Please start the required services by entering the following in a console:
    ./script/ferret_server -e production start
    nohup ./script/push_server &
    ./script/server production

    Access your installation from http://test.myprojects.ch:3000
    Loaded suite ./setup
    Started

    Finished in 0.000303 seconds.


    When i type:
    sudo ./script/ferret_server -e production start

    I get this Message:
    can't convert nil into String

    I have installed with gems this ferret Version:
    ferret 0.11.6 (ruby)
    • CommentAuthoradmin
    • CommentTimeOct 19th 2008
     permalink
    Sorry, not seen that error before, as far as I can remember.

    Could you print the stack-trace as well?

    -- Erlend
    • CommentAuthorcmoman
    • CommentTimeOct 21st 2008 edited
     permalink
    Check out my comments about not using rubygems from the ubuntu repositories.

    http://forum.clockingit.com/discussion/428/apache-config-to-try-and-speed-up-response/

    These two websites give a little more insight in using rubygems to install rails and the additional components.

    http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntu

    https://help.ubuntu.com/community/RubyOnRails