Changeset 1206 for branches/fc11-dev


Ignore:
Timestamp:
Jun 22, 2009, 4:09:18 PM (15 years ago)
Author:
ezyang
Message:
More documentation updates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fc11-dev/server/doc/install-howto.sh

    r1205 r1206  
    218218# Then on the server you're installing,
    219219#    cat perl-packages.txt | perl -MCPAN -e shell
     220    export PERL_MM_USE_DEFAULT=1
     221    # XXX: Some interactive gobbeldygook
     222    cpan
     223        o conf prerequisites_policy follow
     224        o conf commit
     225# on a reference server
     226perldoc -u perllocal | grep head2 | cut -f 3 -d '<' | cut -f 1 -d '|' | sort -u | perl -ne 'chomp; print "notest install $_\n" if system("rpm -q --whatprovides \"perl($_)\" >/dev/null 2>/dev/null")' > perl-packages.txt
     227# arrange for perl-packages.txt to be transferred to server
     228    cat perl-packages.txt | perl -MCPAN -e shell
    220229
    221230# Install the Python eggs and Ruby gems and PEAR/PECL doohickeys that are on
    222231# the other scripts.mit.edu servers and do not have RPMs.
     232# The general mode of operation will be to run the "list" command
     233# on both servers, see what the differences are, check if those diffs
     234# are packaged up as rpms, and install them (rpm if possible, native otherwise)
    223235# - Look at /usr/lib/python2.6/site-packages and
    224236#           /usr/lib64/python2.6/site-packages for Python eggs and modules.
     237#   There will be a lot of gunk that was installed from packages;
     238#   easy-install.pth will tell you what was easy_installed.
    225239#   First use 'yum search' to see if the relevant package is now available
    226240#   as an RPM, and install that if it is.  If not, then use easy_install.
    227241# - Look at `gem list` for Ruby gems.
    228242#   Again, use 'yum search' and prefer RPMs, but failing that, 'gem install'.
     243#       ezyang: rspec-rails depends on rspec, and will override the Yum
     244#       package, so... don't use that RPM yet
    229245# - Look at `pear list` for Pear fruits (or whatever they're called).
    230246#   Yet again, 'yum search' for RPMs before resorting to 'pear install'.  Note
    231247#   that for things in the beta repo, you'll need 'pear install package-beta'.
     248#   (you might get complaints about the php_scripts module; ignore them)
    232249# - Look at `pecl list` for PECL things.  'yum search', and if you must,
    233250#   'pecl install' needed items.
    234 
    235 # echo 'import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.6/site-packages"))' > /usr/lib/python2.6/site-packages/00scripts-home.pth
     251    # Automating this... will require a lot of batonning between
     252    # the servers. Probably best way to do it is to write an actual
     253    # script.
     254
     255# Setup some Python config
     256    echo 'import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.6/site-packages"))' > /usr/lib/python2.6/site-packages/00scripts-home.pth
    236257
    237258# Build and install the scripts php module that enhances error logging info
    238259# XXX This thing really ought to be packaged
    239 # cp -r /srv/repository/server/common/oursrc/php_scripts /root
    240 # cd /root/php_scripts
    241 # ./build.sh
    242 # cp test/modules/scripts.so /usr/lib64/php/modules
     260    cp -r /srv/repository/server/common/oursrc/php_scripts /root
     261    cd /root/php_scripts
     262    ./build.sh
     263    cp test/modules/scripts.so /usr/lib64/php/modules
    243264
    244265# Install the credentials.  There are a lot of things to remember here:
     
    271292# correct.
    272293
    273 # cd /etc/postfix; postmap virtual
    274 # Otherwise postfix will appear to work, but actually not deliver mail
     294# Postfix doesn't actually deliver mail; fix this
     295    cd /etc/postfix
     296    postmap virtual
    275297
    276298# Run fmtutil-sys --all, which does something that makes TeX work.
    277299
    278300# Ensure that PHP isn't broken:
    279 # # mkdir /tmp/sessions
    280 # # chmod 01777 /tmp/sessions
     301    mkdir /tmp/sessions
     302    chmod 01777 /tmp/sessions
    281303
    282304# Ensure that fcgid isn't broken:
    283 chmod 755 /var/run/httpd
    284 chmod 755 /var/run/httpd/mod_fcgid
     305    chmod 755 /var/run/httpd
     306    chmod 755 /var/run/httpd/mod_fcgid
    285307
    286308# Reboot the machine to restore a consistent state, in case you
Note: See TracChangeset for help on using the changeset viewer.