[gold-users] ICST-gold

truongco nguyen truongcophysics at gmail.com
Wed Sep 28 10:30:10 MDT 2011


Thank you very much for your help, but when i finish the make deps step. The
new bug turn out.  Any helps please?

Thanks you in advance!

Following is updated step.

step 1: create user
adduser gold
adduser postgress
step2:
[root at cluster source]# cp gold-2.2.0.0.tar.gz /home/gold/
[root at cluster source]# chown gold:gold /home/gold/
step3:
su gold
[gold at cluster ~]$ tar -zxvf gold-2.2.0.0.tar.gz
[gold at cluster ~]$ cd gold-2.2.0.0
step4:
[root at cluster source]# tar -zxvf postgresql-8.3.3.tar.gz
[root at cluster source]# cd postgresql-8.3.3
step5:
[root at cluster postgresql-8.3.3]# ./configure
report:
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/Makefile.global
config.status: creating src/include/pg_config.h
config.status: creating src/interfaces/ecpg/include/ecpg_config.h
config.status: linking ./src/backend/port/tas/dummy.s to
src/backend/port/tas.s
config.status: linking ./src/backend/port/dynloader/linux.c to
src/backend/port/dynloader.c
config.status: linking ./src/backend/port/sysv_sema.c to
src/backend/port/pg_sema.c
config.status: linking ./src/backend/port/sysv_shmem.c to
src/backend/port/pg_shmem.c
config.status: linking ./src/backend/port/dynloader/linux.h to
src/include/dynloader.h
config.status: linking ./src/include/port/linux.h to
src/include/pg_config_os.h
config.status: linking ./src/makefiles/Makefile.linux to src/Makefile.port

step6:

[root at cluster postgresql-8.3.3]# make
step7:

[root at cluster postgresql-8.3.3]# make install
[root at cluster postgresql-8.3.3]# mkdir /usr/local/pgsql/data
[root at cluster postgresql-8.3.3]# chown postgress /usr/local/pgsql/data
[root at cluster postgresql-8.3.3]# touch /var/log/pgsql
[root at cluster postgresql-8.3.3]# chown postgress /var/log/pgsql

[root at cluster postgresql-8.3.3]# rpm -qa | grep perl
perl-5.8.8-32.el5_5.2
perl-suidperl-5.8.8-32.el5_5.2

[root at cluster postgresql-8.3.3]# rpm -qa |grep libxml
foundation-libxml2-2.6.23-0
libxml2-2.6.26-2.1.2.8.el5_5.1
libxml2-2.6.26-2.1.2.8.el5_5.1
libxml2-devel-2.6.26-2.1.2.8.el5_5.1
libxml2-python-2.6.26-2.1.2.8.el5_5.1

[root at cluster postgresql-8.3.3]# rpm -qa |grep readline
readline-5.1-3.el5
readline-5.1-3.el5
foundation-readline-5.1-0
readline-devel-5.1-3.el5

[root at cluster postgresql-8.3.3]# rpm -qa |grep httpd
httpd-devel-2.2.3-43.el5.centos.3
httpd-devel-2.2.3-43.el5.centos.3
httpd-2.2.3-43.el5.centos.3

[root at cluster postgresql-8.3.3]# rpm -qa |grep openssl
openssl-0.9.8e-12.el5_4.6
openssl-0.9.8e-12.el5_4.6
openssl-devel-0.9.8e-12.el5_4.6
openssl-devel-0.9.8e-12.el5_4.6
[root at cluster postgresql-8.3.3]# rpm -qa |grep mod_ssl
mod_ssl-2.2.3-43.el5.centos.3

[gold at cluster gold-2.2.0.0]$ ./configure --with-db=Pg --with-readline
--with-user=gold --with-perl-libs=local --with-gold-libs=local
--with-cgi-bin=/var/www/cgi-bin/gold
[gold at cluster gold-2.2.0.0]$ make
[gold at cluster gold-2.2.0.0]$ make gui
[gold at cluster gold-2.2.0.0]$ su
[root at cluster gold-2.2.0.0]# *make deps*
[root at cluster gold-2.2.0.0]# make install
[root at cluster gold-2.2.0.0]# make install-gui
[root at cluster gold-2.2.0.0]# make install-gui
[root at cluster gold-2.2.0.0]# make auth_key
Enter your secret key (up to 80 characters and can include spaces): sss
[root at cluster gold-2.2.0.0]# vim /opt/gold/etc/goldd.conf
# Gold Server Config File

super.user = gold

server.host = cluster.tripham.vn
server.port = 7112

database.datasource = DBI:Pg:dbname=gold;host=cluster.tripham.vn
# database.user = NONE
# database.password = NONE

response.chunksize = 100000
# currency.precision = 0

security.authentication = true
# security.encryption = false

account.autogen = true
allocation.autogen = true
# machine.autogen = false

[root at cluster gold-2.2.0.0]# vim /opt/gold/etc/gold.conf
Gold Client Config File

server.host = cluster.tripham.vn
server.port = 7112
# server.backup = NONE

security.authentication = true
# security.encryption = false
# security.token.type = symmetric
# wire.protocol = SSSRMAP

# response.chunking = false
# response.chunksize = 0
# currency.precision = 0

# account.show = Id,Name,Amount,Projects,Users,Machines,Description
# allocation.show =
Id,Account,Active,StartTime,EndTime,Amount,CreditLimit,Deposited
# balance.show = Id,Name,Amount,Reserved,Balance,CreditLimit,Available
# job.show =
Id,JobId,User,Project,Machine,Queue,QualityOfService,Stage,Charge,Processors,Nodes,WallDuration,StartTime,EndTime,Description

step8:

[postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/initdb -D
/usr/local/pgsql/data
[postgress at cluster postgresql-8.3.3]$ echo "host all all 172.16.1.70
255.255.255.255 trust">>/usr/local/pgsql/data/pg_hba.conf
step9:
[postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/postmaster -i -D
/usr/local/pgsql/data
LOG:  database system was shut down at 2011-09-28 19:58:45 ICT
LOG:  autovacuum launcher started
LOG:  database system is ready to accept connections
[postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/postmaster -i -D
/usr/local/pgsql/data >/var/log/pgsql 2>&1 &
[1] 17250
step10:
[postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/createuser gold
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) y
Shall the new role be allowed to create more new roles? (y/n) y
[postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/createdb gold

step11:
[root at cluster ~]# cd /etc/httpd/conf
[root at cluster conf]# vim httpd.conf
edit line
#</Directory>
<Directory "/var/www/cgi-bin">
  Options ExecCGI
  AddHandler cgi-script .cgi .pl
</Directory>
edit line
#ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
Alias /cgi-bin/ "/var/www/cgi-bin/gold"

add line
<VirtualHost 172.16.1.70:443>
  DocumentRoot /var/www/cgi-bin
  ServerName cluster.tripham.vn
  ServerAdmin root at cluster.tripham.vn
  ErrorLog logs/gold-error_log
  TransferLog logs/gold-access_log
  SSLEngine on
  SSLCertificateFile /etc/httpd/conf/ssl.crt/gold-server.crt
  SSLCertificateKeyFile /etc/httpd/conf/ssl.key/gold-server.key
  SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</VirtualHost>

step12:
[root at cluster conf]# mkdir ssl.key
[root at cluster conf]# openssl genrsa -out ssl.key/gold-server.key 1024
Generating RSA private key, 1024 bit long modulus
.......................++++++
.++++++
e is 65537 (0x10001)
[root at cluster ssl.crt]# mkdir ssl.crt
[root at cluster ssl.crt]# touch gold-server.crt
[root at cluster ssl.crt]# chmod +x gold-server.crt

step13:
[root at cluster conf]# openssl req -new -key ssl.key/gold-server.key -x509
-out ssl.crt/gold-server.crt
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:84
State or Province Name (full name) [Berkshire]:vn
Locality Name (eg, city) [Newbury]:hcm
Organization Name (eg, company) [My Company Ltd]:icst
Organizational Unit Name (eg, section) []:tech
Common Name (eg, your name or your server's hostname) []:cluster.tripham.vn
Email Address []:root at cluster.tripham.vn

step14:
[root at cluster conf]# /usr/sbin/apachectl restart
[root at cluster conf]#

step15:
[gold at cluster bin]$ /opt/gold/bin/gchpasswd
Failed sending message: (Unable to connect to socket (Connection refused)).
[gold at cluster bin]$

step16:
[root at cluster ~]# cd /home/gold/gold-2.2.0.0/
[root at cluster gold-2.2.0.0]# cp bank.sql /usr/local/pgsql/
[root at cluster gold-2.2.0.0]# chown postgress /usr/local/pgsql/bank.sql
[postgress at cluster pgsql]$ chmod +x bank.sql
[postgress at cluster pgsql]$ /usr/local/pgsql/bin/psql gold <bank.sql
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1

step17:
[postgress at cluster pgsql]$ /opt/gold/sbin/goldd
[gold at cluster gold-2.2.0.0]$ /opt/gold/sbin/goldd
Starting Gold Pid (19106)
[gold at cluster gold-2.2.0.0]$ DBD::Pg::st execute failed: ERROR:  permission
denied for relation g_object at /opt/gold/lib/Gold/Database.pm line 673.
Exception caught while populating metadata cache: DBD::Pg::st execute
failed:
ERROR:  permission denied for relation g_object at
/opt/gold/lib/Gold/Database.pm line 673.


On Wed, Sep 28, 2011 at 10:47 PM, Scott Jackson <
scottmo at adaptivecomputing.com> wrote:

> You missed the make deps step.
>
> ------------------------------
>
> *From: *"truongco nguyen" <truongcophysics at gmail.com>
> *To: *gold-users at supercluster.org
> *Sent: *Wednesday, September 28, 2011 7:51:53 AM
> *Subject: *[gold-users] ICST-gold
>
>
> Dear
>
> I am trying to install gold in Rock 5.4. But in installing process i
> encountered a problem like that:
>
> [postgress at cluster pgsql]$ */opt/gold/sbin/goldd*
>
> *Can't locate Log/Log4perl.pm in @INC (@INC contains: /opt/gold/lib*
> */opt/gold/lib/perl5 /usr/local/lib/perl5/5.10.0/x86_64-linux*
> */usr/local/lib/perl5/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux*
> */usr/local/lib/perl5/site_perl/5.10.0 .) at /opt/gold/sbin/goldd line 52.
> *
> *BEGIN failed--compilation aborted at /opt/gold/sbin/goldd line 52.*
> *
> *
> I don't know how to fix it? Any clues are high appreciated? * *
> *
> *
> Thank you very much
> *
> *
> Below are steps i crossed :
>
> step 1: create user
> adduser gold
> adduser postgress
> step2:
> [root at cluster source]# cp gold-2.2.0.0.tar.gz /home/gold/
> [root at cluster source]# chown gold:gold /home/gold/
> step3:
> su gold
> [gold at cluster ~]$ tar -zxvf gold-2.2.0.0.tar.gz
> [gold at cluster ~]$ cd gold-2.2.0.0
> step4:
> [root at cluster source]# tar -zxvf postgresql-8.3.3.tar.gz
> [root at cluster source]# cd postgresql-8.3.3
> step5:
> [root at cluster postgresql-8.3.3]# ./configure
> report:
> configure: creating ./config.status
> config.status: creating GNUmakefile
> config.status: creating src/Makefile.global
> config.status: creating src/include/pg_config.h
> config.status: creating src/interfaces/ecpg/include/ecpg_config.h
> config.status: linking ./src/backend/port/tas/dummy.s to
> src/backend/port/tas.s
> config.status: linking ./src/backend/port/dynloader/linux.c to
> src/backend/port/dynloader.c
> config.status: linking ./src/backend/port/sysv_sema.c to
> src/backend/port/pg_sema.c
> config.status: linking ./src/backend/port/sysv_shmem.c to
> src/backend/port/pg_shmem.c
> config.status: linking ./src/backend/port/dynloader/linux.h to
> src/include/dynloader.h
> config.status: linking ./src/include/port/linux.h to
> src/include/pg_config_os.h
> config.status: linking ./src/makefiles/Makefile.linux to src/Makefile.port
>
> step6:
>
> [root at cluster postgresql-8.3.3]# make
> step7:
>
> [root at cluster postgresql-8.3.3]# make install
> [root at cluster postgresql-8.3.3]# mkdir /usr/local/pgsql/data
> [root at cluster postgresql-8.3.3]# chown postgress /usr/local/pgsql/data
> [root at cluster postgresql-8.3.3]# touch /var/log/pgsql
> [root at cluster postgresql-8.3.3]# chown postgress /var/log/pgsql
>
> [root at cluster postgresql-8.3.3]# rpm -qa | grep perl
> perl-5.8.8-32.el5_5.2
> perl-suidperl-5.8.8-32.el5_5.2
>
> [root at cluster postgresql-8.3.3]# rpm -qa |grep libxml
> foundation-libxml2-2.6.23-0
> libxml2-2.6.26-2.1.2.8.el5_5.1
> libxml2-2.6.26-2.1.2.8.el5_5.1
> libxml2-devel-2.6.26-2.1.2.8.el5_5.1
> libxml2-python-2.6.26-2.1.2.8.el5_5.1
>
> [root at cluster postgresql-8.3.3]# rpm -qa |grep readline
> readline-5.1-3.el5
> readline-5.1-3.el5
> foundation-readline-5.1-0
> readline-devel-5.1-3.el5
>
> [root at cluster postgresql-8.3.3]# rpm -qa |grep httpd
> httpd-devel-2.2.3-43.el5.centos.3
> httpd-devel-2.2.3-43.el5.centos.3
> httpd-2.2.3-43.el5.centos.3
>
> [root at cluster postgresql-8.3.3]# rpm -qa |grep openssl
> openssl-0.9.8e-12.el5_4.6
> openssl-0.9.8e-12.el5_4.6
> openssl-devel-0.9.8e-12.el5_4.6
> openssl-devel-0.9.8e-12.el5_4.6
> [root at cluster postgresql-8.3.3]# rpm -qa |grep mod_ssl
> mod_ssl-2.2.3-43.el5.centos.3
>
> [gold at cluster gold-2.2.0.0]$ ./configure --with-db=Pg --with-readline
> --with-user=gold --with-perl-libs=local --with-gold-libs=local
> --with-cgi-bin=/var/www/cgi-bin/gold
> [gold at cluster gold-2.2.0.0]$ make
> [gold at cluster gold-2.2.0.0]$ make gui
> [gold at cluster gold-2.2.0.0]$ su
> [root at cluster gold-2.2.0.0]# make install
> [root at cluster gold-2.2.0.0]# make install-gui
> [root at cluster gold-2.2.0.0]# make auth_key
> Enter your secret key (up to 80 characters and can include spaces): sss
> [root at cluster gold-2.2.0.0]# vim /opt/gold/etc/goldd.conf
> # Gold Server Config File
>
> super.user = gold
>
> server.host = cluster.tripham.vn
> server.port = 7112
>
> database.datasource = DBI:Pg:dbname=gold;host=cluster.tripham.vn
> # database.user = NONE
> # database.password = NONE
>
> response.chunksize = 100000
> # currency.precision = 0
>
> security.authentication = true
> # security.encryption = false
>
> account.autogen = true
> allocation.autogen = true
> # machine.autogen = false
>
> [root at cluster gold-2.2.0.0]# vim /opt/gold/etc/gold.conf
> Gold Client Config File
>
> server.host = cluster.tripham.vn
> server.port = 7112
> # server.backup = NONE
>
> security.authentication = true
> # security.encryption = false
> # security.token.type = symmetric
> # wire.protocol = SSSRMAP
>
> # response.chunking = false
> # response.chunksize = 0
> # currency.precision = 0
>
> # account.show = Id,Name,Amount,Projects,Users,Machines,Description
> # allocation.show =
> Id,Account,Active,StartTime,EndTime,Amount,CreditLimit,Deposited
> # balance.show = Id,Name,Amount,Reserved,Balance,CreditLimit,Available
> # job.show =
> Id,JobId,User,Project,Machine,Queue,QualityOfService,Stage,Charge,Processors,Nodes,WallDuration,StartTime,EndTime,Description
>
> step8:
>
> [postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/initdb -D
> /usr/local/pgsql/data
> [postgress at cluster postgresql-8.3.3]$ echo "host all all 172.16.1.70
> 255.255.255.255 trust">>/usr/local/pgsql/data/pg_hba.conf
> step9:
> [postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/postmaster -i
> -D /usr/local/pgsql/data
> LOG:  database system was shut down at 2011-09-28 19:58:45 ICT
> LOG:  autovacuum launcher started
> LOG:  database system is ready to accept connections
> [postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/postmaster -i
> -D /usr/local/pgsql/data >/var/log/pgsql 2>&1 &
> [1] 17250
> step10:
> [postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/createuser
> gold
> Shall the new role be a superuser? (y/n) n
> Shall the new role be allowed to create databases? (y/n) y
> Shall the new role be allowed to create more new roles? (y/n) y
> [postgress at cluster postgresql-8.3.3]$ /usr/local/pgsql/bin/createdb gold
>
> step11:
> [root at cluster ~]# cd /etc/httpd/conf
> [root at cluster conf]# vim httpd.conf
> edit line
> #</Directory>
> <Directory "/var/www/cgi-bin">
>   Options ExecCGI
>   AddHandler cgi-script .cgi .pl
> </Directory>
> edit line
> #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> Alias /cgi-bin/ "/var/www/cgi-bin/gold"
>
> add line
> <VirtualHost 172.16.1.70:443>
>   DocumentRoot /var/www/cgi-bin
>   ServerName cluster.tripham.vn
>   ServerAdmin root at cluster.tripham.vn
>   ErrorLog logs/gold-error_log
>   TransferLog logs/gold-access_log
>   SSLEngine on
>   SSLCertificateFile /etc/httpd/conf/ssl.crt/gold-server.crt
>   SSLCertificateKeyFile /etc/httpd/conf/ssl.key/gold-server.key
>   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
> </VirtualHost>
>
> step12:
> [root at cluster conf]# mkdir ssl.key
> [root at cluster conf]# openssl genrsa -out ssl.key/gold-server.key 1024
> Generating RSA private key, 1024 bit long modulus
> .......................++++++
> .++++++
> e is 65537 (0x10001)
> [root at cluster ssl.crt]# mkdir ssl.crt
> [root at cluster ssl.crt]# touch gold-server.crt
> [root at cluster ssl.crt]# chmod +x gold-server.crt
>
> step13:
> [root at cluster conf]# openssl req -new -key ssl.key/gold-server.key -x509
> -out ssl.crt/gold-server.crt
> You are about to be asked to enter information that will be incorporated
> into your certificate request.
> What you are about to enter is what is called a Distinguished Name or a DN.
> There are quite a few fields but you can leave some blank
> For some fields there will be a default value,
> If you enter '.', the field will be left blank.
> -----
> Country Name (2 letter code) [GB]:84
> State or Province Name (full name) [Berkshire]:vn
> Locality Name (eg, city) [Newbury]:hcm
> Organization Name (eg, company) [My Company Ltd]:icst
> Organizational Unit Name (eg, section) []:tech
> Common Name (eg, your name or your server's hostname) []:
> cluster.tripham.vn
> Email Address []:root at cluster.tripham.vn
>
> step14:
> [root at cluster conf]# /usr/sbin/apachectl restart
> [root at cluster conf]#
>
> step15:
> [root at cluster ~]# gchpasswd
> Can't locate Log/Log4perl.pm in @INC (@INC contains: /opt/gold/lib
> /opt/gold/lib/perl5 /usr/local/lib/perl5/5.10.0/x86_64-linux
> /usr/local/lib/perl5/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux
> /usr/local/lib/perl5/site_perl/5.10.0) at /opt/gold/lib/Gold.pm line 108.
> BEGIN failed--compilation aborted at /opt/gold/lib/Gold.pm line 108.
> Compilation failed in require at /opt/gold/bin/gchpasswd line 52.
> BEGIN failed--compilation aborted at /opt/gold/bin/gchpasswd line 52.
>
> step16:
> [root at cluster ~]# cd /home/gold/gold-2.2.0.0/
> [root at cluster gold-2.2.0.0]# cp bank.sql /usr/local/pgsql/
> [root at cluster gold-2.2.0.0]# chown postgress /usr/local/pgsql/bank.sql
> [postgress at cluster pgsql]$ chmod +x bank.sql
> [postgress at cluster pgsql]$ /usr/local/pgsql/bin/psql gold <bank.sql
> INSERT 0 1
> INSERT 0 1
> INSERT 0 1
> INSERT 0 1
> INSERT 0 1
> INSERT 0 1
> INSERT 0 1
>
> step17:
> [postgress at cluster pgsql]$ /opt/gold/sbin/goldd
> Can't locate Log/Log4perl.pm in @INC (@INC contains: /opt/gold/lib
> /opt/gold/lib/perl5 /usr/local/lib/perl5/5.10.0/x86_64-linux
> /usr/local/lib/perl5/5.10.0
> /usr/local/lib/perl5/site_perl/5.10.0/x86_64-linux
> /usr/local/lib/perl5/site_perl/5.10.0 .) at /opt/gold/sbin/goldd line 52.
> BEGIN failed--compilation aborted at /opt/gold/sbin/goldd line 52.
>
> --
> Nguyen Truong Co
> Institute for Computational Science and Technology
> Researcher of Life Science Lab
>
>
> _______________________________________________
> gold-users mailing list
> gold-users at supercluster.org
> http://www.supercluster.org/mailman/listinfo/gold-users
>
>
>
> _______________________________________________
> gold-users mailing list
> gold-users at supercluster.org
> http://www.supercluster.org/mailman/listinfo/gold-users
>
>


-- 
Nguyen Truong Co
Institute for Computational Science and Technology
Researcher of Life Science Lab
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/gold-users/attachments/20110928/093b07d0/attachment-0001.html 


More information about the gold-users mailing list