Difference between revisions of "Installing Chado on Ubuntu HOWTO"
From GMOD
(Ben's Added Comments) |
|||
Line 26: | Line 26: | ||
Shall the new role be a superuser? (y/n) y | Shall the new role be a superuser? (y/n) y | ||
CREATE ROLE | CREATE ROLE | ||
− | $ vi /etc/postgresql/8. | + | $ vi /etc/postgresql/8.3/main/pg_hba.conf |
#changed "local all all" and "host all all" lines from ident sameuser to trust | #changed "local all all" and "host all all" lines from ident sameuser to trust | ||
$ exit | $ exit | ||
− | $ sudo /etc/init.d/postgresql-8. | + | $ sudo /etc/init.d/postgresql-8.3 restart |
+ | |||
+ | It is useful to actually have a password, even using trust, otherwise problems with DBD::Pg pop up telling you that no password was supplied. | ||
+ | $ sudo su - postgres | ||
+ | $ psql -d template1 | ||
+ | $ alter USER scott with password 'mypassword'; | ||
+ | $ exit #from psql | ||
+ | $ exit #from sudo | ||
Installing prereqs with cpan shell: | Installing prereqs with cpan shell: | ||
− | *install CMUNGALL/go-perl-0. | + | *install CMUNGALL/go-perl-0.09.tar.gz |
*install DBIx::DBSchema # needed by DBIx::DBStag | *install DBIx::DBSchema # needed by DBIx::DBStag | ||
+ | *install Module::Build # needed by GMOD Makefile.PL | ||
+ | *install DBD::Pg #required by GMOD make ontologies | ||
+ | |||
Installed DBIx::DBStag 'by hand': | Installed DBIx::DBStag 'by hand': | ||
wget http://search.cpan.org/CPAN/authors/id/C/CM/CMUNGALL/DBIx-DBStag-0.09.tar.gz | wget http://search.cpan.org/CPAN/authors/id/C/CM/CMUNGALL/DBIx-DBStag-0.09.tar.gz | ||
− | tar zxvf DBIx-DBStag-0. | + | tar zxvf DBIx-DBStag-0.10.tar.gz |
− | cd DBIx-DBStag-0. | + | cd DBIx-DBStag-0.10 |
createdb test # needed for the make test step | createdb test # needed for the make test step | ||
+ | perl Makefile.PL | ||
make | make | ||
− | make test # | + | make test #all tests pass |
sudo make install | sudo make install | ||
Line 51: | Line 62: | ||
export CHADO_DB_NAME=chado | export CHADO_DB_NAME=chado | ||
export CHADO_DB_USER=scott | export CHADO_DB_USER=scott | ||
− | export CHADO_DB_PASS= | + | export CHADO_DB_PASS=mypassword |
export CHADO_DB_HOST=localhost | export CHADO_DB_HOST=localhost | ||
export CHADO_DB_PORT=5432 | export CHADO_DB_PORT=5432 | ||
export GO_ROOT=/usr/local/share/perl/5.8.8/GO | export GO_ROOT=/usr/local/share/perl/5.8.8/GO | ||
− | |||
and added this line to the end of ~/.bash_profile: | and added this line to the end of ~/.bash_profile: | ||
Line 61: | Line 71: | ||
. ~/.gmod_profile #sources the gmod profile on login | . ~/.gmod_profile #sources the gmod profile on login | ||
− | Then | + | Then, back in the gmod directory |
perl Makefile.PL | perl Makefile.PL |
Revision as of 05:46, 31 July 2008
Notes
Installing prereqs with Synaptic:
- postgresql
- postgresql-client
- postgresql-contrib
- postgresql-plperl
- libdbd-pg-perl
- libtemplate-perl -- Template toolkit
- libxml-simple-perl
- liblog-log4perl-perl
- ant
- libparse-recdescent-perl # needed by DBIx::DBStag
If you are using postgres 8.3 (which is the default on Ubuntu Hardy July 31 2008),
sudo apt-get install postgresql postgresql-client postgresql-contrib postgresql-plperl-8.3 libdbd-pg-perl libtemplate-perl libxml-simple-perl liblog-log4perl-perl ant libparse-recdescent-perl
Otherwise change the postgresql-plperl-8.3 to suit.
Created a db user for me:
$ sudo su - postgres $ createuser scott Shall the new role be a superuser? (y/n) y CREATE ROLE $ vi /etc/postgresql/8.3/main/pg_hba.conf #changed "local all all" and "host all all" lines from ident sameuser to trust $ exit $ sudo /etc/init.d/postgresql-8.3 restart
It is useful to actually have a password, even using trust, otherwise problems with DBD::Pg pop up telling you that no password was supplied.
$ sudo su - postgres $ psql -d template1 $ alter USER scott with password 'mypassword'; $ exit #from psql $ exit #from sudo
Installing prereqs with cpan shell:
- install CMUNGALL/go-perl-0.09.tar.gz
- install DBIx::DBSchema # needed by DBIx::DBStag
- install Module::Build # needed by GMOD Makefile.PL
- install DBD::Pg #required by GMOD make ontologies
Installed DBIx::DBStag 'by hand':
wget http://search.cpan.org/CPAN/authors/id/C/CM/CMUNGALL/DBIx-DBStag-0.09.tar.gz tar zxvf DBIx-DBStag-0.10.tar.gz cd DBIx-DBStag-0.10 createdb test # needed for the make test step perl Makefile.PL make make test #all tests pass sudo make install
Created the file ~/.gmod_profile, with the contents:
export GMOD_ROOT=/usr/local/gmod export CHADO_DB_NAME=chado export CHADO_DB_USER=scott export CHADO_DB_PASS=mypassword export CHADO_DB_HOST=localhost export CHADO_DB_PORT=5432 export GO_ROOT=/usr/local/share/perl/5.8.8/GO
and added this line to the end of ~/.bash_profile:
. ~/.gmod_profile #sources the gmod profile on login
Then, back in the gmod directory
perl Makefile.PL make sudo make install make load_schema make prepdb make ontologies #selected 1,2,3,4
Installed bioperl-live from cvs:
wget http://cvs.bioperl.org/cgi-bin/viewcvs/viewcvs.cgi/bioperl-live/bioperl-live.tar.gz?tarball=1&cvsroot=bioperl tar zxvf bioperl-live.tar.gz cd bioperl-live perl Build.PL ./Build ./Build test #a few tests fail, but that's ok sudo ./Build install
Get and load yeast GFF3 file:
wget ftp://ftp.yeastgenome.org/yeast/chromosomal_feature/saccharomyces_cerevisiae.gff #fix the obsolete SO term in the GFF file: perl -pi -e 's/\trepeat_family\t/\trepeat_region\t/' saccharomyces_cerevisiae.gff gmod_bulk_load_gff3.pl -g saccharomyces_cerevisiae.gff