view · edit · sidebar · attach · print · history

20120531-setup-development-environment-ch-oddb-org

<< | Index | >>


Summary

  • setuped softwares for development
  • started to setup oddb.org

Index

Note

my previous setup logs (ch.oddb.org)


Setup development environment

  • ntp
  • X11
  • xTerm
  • keymap
  • slim
  • ion3
  • input method
NOTE

Attach:setup-software.md.txt


Setup ch.oddb.org

Ruby

I installed rbenv for management Ruby.
Because We needs many Ruby versions.

  • Ruby 1.9.3-p0
  • Ruby 1.9.3-p194
  • Ruby 1.8.6 + Oniguruma patch
  • Ruby 1.8.7
NOTE
  • Ruby 1.9.3 require libyaml (emerged) before ruby compile.
  • To compile all Ruby with --enable-shared.

Postgres

$ sudo emerge -av postgresql-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-admin/eselect-postgresql-1.0.10  4 kB
[ebuild  N     ] dev-db/postgresql-base-9.1.3  USE="nls pam readline ssl threads zlib -doc -kerberos -ldap -pg_legacytimestamp" LINGUAS="de en -af -cs -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" 15,222 kB
[ebuild  N     ] dev-db/postgresql-server-9.1.3  USE="nls pam perl python xml -doc -pg_legacytimestamp (-selinux) -tcl -uuid" LINGUAS="de en -af -cs -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk -sl -sv -tr -zh_CN -zh_TW" 3 kB

Total: 3 packages (3 new), Size of downloads: 15,228 kB

Imagemagick

$ sudo USE="X jpeg png wmf truetype" emerge -av imagemagick

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-gfx/imagemagick-6.7.6.9  USE="X bzip2 cxx jpeg openmp perl png tiff truetype wmf xml zlib -autotrace -corefonts -djvu -fftw -fontconfig -fpx -graphviz -gs -hdri -jbig -jpeg2k -lcms -lqr -lzma -opencl -openexr -pango -q32 -q64 -q8 -raw -static-libs -svg -test -webp" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Apache

$ sudo emerge -av apache

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-libs/apr-1.4.6  USE="urandom uuid -doc -older-kernels-compatibility -static-libs" 768 kB
[ebuild  N     ] dev-libs/apr-util-1.4.1  USE="berkdb gdbm -doc -freetds -ldap -mysql -nss -odbc -openssl -postgres -sqlite -static-libs" 621 kB
[ebuild  N     ] app-admin/apache-tools-2.2.22  USE="ssl" 5,253 kB
[ebuild  N     ] www-servers/apache-2.2.22-r1  USE="ssl threads -debug -doc -ldap (-selinux) -static -suexec" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 63 kB

Total: 4 packages (4 new), Size of downloads: 6,704 kB

/etc/conf.d/apache2

added -D RUBY as APACHE2_OPTS into /etc/conf.d/apache2

APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D RUBY -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE"

/etc/apache2/httpd.conf

added default servername (for warning)

ServerName localhost

commented out mod_unique_id

 #LoadModule unique_id_module modules/mod_unique_id.so

Ref

check apache2

$ sudo /etc/init.d/apache2 start $ curl http://localhost <html><body><h1>It works!</h1></body></html>

install gems

created Gemfile for current ch.oddb.org

$ gem install bundle $ cd /var/www/oddb.org $ bundle exec install --path .bunle/gems

created Gemfile/Gemfile.lock

mod_ruby

compile mod_ruby with ruby-1.9.3

$ git clone https://github.com/shugo/mod_ruby.git
$ cd mod_ruby
$ /usr/bin/apr-1-config --includedir
/usr/include/apr-1
$ ./configure.rb --with-apxs=/usr/sbin/apxs --with-apr-includes=/usr/include/apr-1
./configure.rb:301: Use RbConfig instead of obsolete and deprecated Config.
checking for a BSD compatible install... /usr/bin/install -c
checking whether we are using gcc... yes
checking Ruby version... 1.9.3
checking for static Apache module support... no
checking for dynamic Apache module support... yes
creating Makefile
creating libruby.module
creating doc/Makefile
view · edit · sidebar · attach · print · history
Page last modified on May 31, 2012, at 01:42 PM