Commit 1127161a4f863880e27e40486dc5de1c1bd5db52

Authored by Paulo Meireles
1 parent ddc24ef4

updating install acoording to rails 2.3.5

Showing 1 changed file with 24 additions and 26 deletions   Show diff stats
@@ -13,7 +13,8 @@ You need to install some packages Noosfero depends on. On Debian GNU/Linux or @@ -13,7 +13,8 @@ You need to install some packages Noosfero depends on. On Debian GNU/Linux or
13 Debian-based systems, all of these packages are available through the Debian 13 Debian-based systems, all of these packages are available through the Debian
14 archive. You can install them with the following command: 14 archive. You can install them with the following command:
15 15
16 - # apt-get install ruby rake po4a libgettext-ruby-util libgettext-ruby-data libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby libferret-ruby libdaemons-ruby thin tango-icon-theme libhpricot-ruby 16 + # apt-get install ruby rake po4a libgettext-ruby-util libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby libferret-ruby libdaemons-ruby thin tango-icon-theme libhpricot-ruby
  17 +
17 18
18 On other systems, they may or may not be available through your regular package 19 On other systems, they may or may not be available through your regular package
19 management system. Below are the links to their homepages. 20 management system. Below are the links to their homepages.
@@ -21,7 +22,6 @@ management system. Below are the links to their homepages. @@ -21,7 +22,6 @@ management system. Below are the links to their homepages.
21 * Ruby: http://www.ruby-lang.org/ 22 * Ruby: http://www.ruby-lang.org/
22 * Rake: http://rake.rubyforge.org/ 23 * Rake: http://rake.rubyforge.org/
23 * po4a: http://po4a.alioth.debian.org/ 24 * po4a: http://po4a.alioth.debian.org/
24 -* Ruby-GetText: http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext (at least version 1.9.0)  
25 * Ruby-sqlite3: http://rubyforge.org/projects/sqlite-ruby 25 * Ruby-sqlite3: http://rubyforge.org/projects/sqlite-ruby
26 * rcov: http://eigenclass.org/hiki/rcov 26 * rcov: http://eigenclass.org/hiki/rcov
27 * Ferret: http://ferret.davebalmain.com/trac 27 * Ferret: http://ferret.davebalmain.com/trac
@@ -35,17 +35,6 @@ management system. Below are the links to their homepages. @@ -35,17 +35,6 @@ management system. Below are the links to their homepages.
35 * tango-icon-theme: http://tango.freedesktop.org/Tango_Icon_Library 35 * tango-icon-theme: http://tango.freedesktop.org/Tango_Icon_Library
36 * Hpricot: http://hpricot.com/ 36 * Hpricot: http://hpricot.com/
37 37
38 -Note: the tango-icon-theme package is not available in Debian Lenny's main  
39 -repository, because back then it was not DFSG-free (Debian Squeeze will have it  
40 -in main). You can either add the non-free repository to your sources.list file,  
41 -or download the .deb directly and install it manually with `dpkg -i`. In this  
42 -case will need do install hicolor-icon-theme as well bacause tango-icon-theme  
43 -depends on it. After that you can try the command line above again, but  
44 -without "tango-icon-theme".  
45 -  
46 -More Informations to install the tango-icon-theme on Debian Lenny:  
47 -* http://packages.debian.org/en/lenny/all/tango-icon-theme/download  
48 -  
49 If you manage to install Noosfero successfully on other systems than Debian, 38 If you manage to install Noosfero successfully on other systems than Debian,
50 please feel free to contact the Noosfero development mailing with the 39 please feel free to contact the Noosfero development mailing with the
51 instructions for doing so, and we'll include it here. 40 instructions for doing so, and we'll include it here.
@@ -108,11 +97,11 @@ $ git checkout -b stable origin/stable @@ -108,11 +97,11 @@ $ git checkout -b stable origin/stable
108 downloading tarball 97 downloading tarball
109 ------------------- 98 -------------------
110 99
111 -Note: replace 0.27.1 below from the latest stable version. 100 +Note: replace 0.35.0 below from the latest stable version.
112 101
113 -$ wget http://noosfero.org/pub/Development/NoosferoVersion00x27x01/noosfero-0.27.1.tar.gz  
114 -$ tar -zxvf noosfero-0.27.1.tar.gz  
115 -$ ln -s noosfero-0.27.1 current 102 +$ wget http://noosfero.org/pub/Development/NoosferoVersion00x35x00/noosfero-0.35.0.tar.gz
  103 +$ tar -zxvf noosfero-0.35.0.tar.gz
  104 +$ ln -s noosfero-0.35.0 current
116 $ cd current 105 $ cd current
117 106
118 Copy config/ferret_server.yml.dist to config/ferret_server.yml. You will 107 Copy config/ferret_server.yml.dist to config/ferret_server.yml. You will
@@ -126,15 +115,15 @@ Edit config/thin.yml to suit your needs. Make sure your apache @@ -126,15 +115,15 @@ Edit config/thin.yml to suit your needs. Make sure your apache
126 configuration matches the thin cluster configuration, specially in respect 115 configuration matches the thin cluster configuration, specially in respect
127 to the ports and numbers of thin instances. 116 to the ports and numbers of thin instances.
128 117
129 -Note: currently Noosfero only supports Rails 2.1.0, which is the version in  
130 -Debian Lenny. If you have a Rails version newer than that, Noosfero will  
131 -probably not work. You can install Rails 2.1.0 into your Noosfero installation 118 +Note: currently Noosfero only supports Rails 2.3.5, which is the version in
  119 +Debian Squeeze. If you have a Rails version newer than that, Noosfero will
  120 +probably not work. You can install Rails 2.3.5 into your Noosfero installation
132 with the following procedure: 121 with the following procedure:
133 122
134 $ cd /var/lib/noosfero/current/vendor 123 $ cd /var/lib/noosfero/current/vendor
135 -$ wget http://ftp.de.debian.org/debian/pool/main/r/rails/rails_2.1.0.orig.tar.gz  
136 -$ tar xzf rails_2.1.0.orig.tar.gz  
137 -$ ln -s rails-2.1.0 rails 124 +$ wget http://ftp.de.debian.org/debian/pool/main/r/rails/rails_2.3.5.orig.tar.gz
  125 +$ tar xzf rails_2.3.5.orig.tar.gz
  126 +$ ln -s rails-2.3.5 rails
138 127
139 As root user 128 As root user
140 ============ 129 ============
@@ -151,12 +140,11 @@ so if you are planning to use a different database this steps won't apply. @@ -151,12 +140,11 @@ so if you are planning to use a different database this steps won't apply.
151 # su postgres -c 'createuser noosfero -S -d -R' 140 # su postgres -c 'createuser noosfero -S -d -R'
152 141
153 By default Rails will try to connect on postgresql through 5432 port, but 142 By default Rails will try to connect on postgresql through 5432 port, but
154 -Debian start postgresql on port 5433, then is needed to change postgresql to  
155 -start on port 5432 in /etc/postgresql/8.3/main/postgresql.conf file. 143 +you can check it in /etc/postgresql/8.4/main/postgresql.conf file.
156 144
157 Restart postgresql: 145 Restart postgresql:
158 146
159 -# invoke-rc.d postgresql-8.3 restart 147 +# invoke-rc.d postgresql restart
160 148
161 Noosfero needs a functional e-mail setup to work: the local mail system should 149 Noosfero needs a functional e-mail setup to work: the local mail system should
162 be able to deliver e-mail to the internet, either directly or through an 150 be able to deliver e-mail to the internet, either directly or through an
@@ -233,6 +221,16 @@ $ ./script/dbconsole production @@ -233,6 +221,16 @@ $ ./script/dbconsole production
233 If it connects to your database, then everything is fine. If you got an error 221 If it connects to your database, then everything is fine. If you got an error
234 message, then you have to check your database configuration. 222 message, then you have to check your database configuration.
235 223
  224 +As root user
  225 +============
  226 +
  227 +Install RubyGem Rack 1.0.1:
  228 +
  229 +$ gem install rack -v 1.0.1
  230 +
  231 +As noosfero user
  232 +================
  233 +
236 Create the database structure: 234 Create the database structure:
237 235
238 $ RAILS_ENV=production rake db:schema:load 236 $ RAILS_ENV=production rake db:schema:load