« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
暂无公告... |
Blog信息 |
blog名称:黑洞 日志总数:6 评论数量:22 留言数量:0 访问次数:103358 建立时间:2005年8月30日 |

| |
[globus]GT4.0.0 的安装历程1 读书笔记, 软件技术
嘻嘻哈哈 发表于 2005/8/30 15:20:52 |
刚开始学globus,原来机器上的Gt是3.9.5,打算换成4.0.0,顺便熟悉一下安装过程。下文基本是前人的文章,不过我安装的时候也出了好多问题,顺便记录一下,便于以后使用
安装相关软件(参照下文,出现的问题基本是目录的权限之类的)
第一章支持软件的安装
假设该文件放在/home/globus/下
当前目录为/home/globus
一. j2sdk-1_4_2_08-linux-i586.bin
以下操作以root帐号执行
1 首先确保有执行该文件的权限
chmod +x j2sdk-1_4_2_08-linux-i586.bin
2 将该文件拷到/usr/local并更改目录到/usr/local
cp j2sdk-1_4_2_08-linux-i586.bin /usr/local
cd /usr/local
3 ./j2sdk-1_4_2_08-linux-i586.bin
会出现协议书类的一直回车直到显示
Do you agree to the above license terms? [yes or no]
输入y,会自动安装在/usr/local/j2sdk1.4.2_08目录下
二 apache-ant-1.6.0-src.tar.gz
以下命令以root帐号执行
1 将该文件拷到/usr/local并更改目录到/usr/local
cp apache-ant-1.6.0-bin.tar.gz /usr/local
cd /usr/local
2 安装,解压到/usr/local下
tar zxpvf apache-ant-1.6.0-bin.tar.gz
ln -s apache-ant-1.6.0 ant
三 postgresql-8.0.3.tar.gz
先以下命令以root帐号执行
1 设计人员为了安全考虑,PostgreSQL 不能以 root 用户运行,所以必须建立对应的用户和组:
useradd postgre
mkdir /usr/local/pgsql
chown postgres:postgres /usr/local/pgsql
mkdir /usr/local/src
mkdir /usr/local/src/pgsql
chown postgres:postgres /usr/local/src/pgsql
zy:
一般可能还需要付给postgres /usr/src目录的写权限,用于创建目录
chown postgres /usr/src
---------------------------------------------
2 解压到 /usr/local/src以postgres帐号
su postgres
tar xvfz postgresql-8.0.3.tar.gz
cd postgresql-8.0.3
./configure --prefix=/usr/local/pgsql
make
make install
3 这样安装完毕后,并不是万事大吉了,还有一些收尾工作要做:
打开配置文件, 还是以postgres帐号
cd
vi .bashrc
添加下面的内容:
PATH=$PATH:/usr/local/pgsql/bin
export POSTGRES_HOME=/usr/local/pgsql
export PGLIB=$POSTGRES_HOME/lib
export PGDATA=$POSTGRES_HOME/data
export ANPATH=$MANPTH:$POSTGRES_HOME/man
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PGLIB
存盘退出后执行:
. ./.bashrc
----------------------------------------------------------------------------------------------
Zy补充:
安装后,添加
# mkdir /usr/local/pgsql/data # 新建一个用来存放数据库的文件夹
为了让postgres能够完全控制data目录,我们设置权限:
# chown postgres /usr/local/pgsql/data
设置权限后,我们就切换到 postgres用户:
# su postgres
再初始话数据库:
$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
---------------------------------------------------------------------------------------------
4 启动数据库引擎:默认将环境变量PGDATA指向目录作为数据库目录
initdb -E EUC_CN
指定系统默认字符编码。除GB码(EUC_CN) 外,还可以指定为日语
(EUC_JP)、韩语(EUC_KR) 、台湾(EUC_TW) 、UNICODE、MULE_INTERNAL、LATIN1等。
注意,如使用6.3.2版需用--with-template=... 指定操作系统,具体内容见源程序附带的说明文件。
configure如顺利完成,将生成GNUmakefile,Makefile.global和Makefile.port等文件
使用以下命令启动PostgreSQL:
postmaster –S
或者$ /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data & # 启动PostgreSQL
停止PostgreSQL可以使用下面的命令:
pg_ctl stop
四 统一设置环境变量
vi /etc/profile
在最后添加下面的内容
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/local/j2sdk1.4.2_08
export CLASSPATH="./:JAVA_HOME/lib:JAVA_HOME/jre/lib"
export PATH=$PATH:$JAVA_HOME/bin:JAVA_HOME/jre/bin:$ANT_HOME/bin
输入:wq保存退出后执行
运行java显示相关信息说明安装成功
运行ant和ant -version命令显示相关信息
安装gt4,gz版本和bin版本有些区别,最好完全按着文章来
其中文件权限也出了好多问题,后来总算好了
1、 创建globus用户,用root用户在/usr/local/下创建globus-4.0.0目录,
#mkdir /usr/local/globus-4.0.0
更改该目录主属性 $chown globus:globus globus-4.0.0
2、 解压缩gt4.0.0-all-source-installer.tar.gz ,完整的globus安装包。
$tar xzvf gt4.0.0-all-source-installer.tar.gz
3、 切换为globus用户设置环境
globus$ export GLOBUS_LOCATION=/usr/local/globus-4.0.0
globus$ ./configure --prefix=$GLOBUS_LOCATION
4、 执行编译命令
globus$ make
如果这一步出现问题,注意看一下相关文件的权限
可以考虑 chmod u+x *
make出问题后,
如果再次执行时出现
/usr/local/globus-4.0.0/sbin/gpt-build -srcdir=source-trees-thr/core/source gcc32dbgpthr make: /usr/local/globus-4.0.0/sbin/gpt-build: Command not found make: *** [globus_core-thr] Error 127
那么make clean 一下,再执行make
globus$ make install
注意,该步骤可能需要3-4个小时不等的时间
注:configure 过程中出过些问题
./configure: conf2139.file: No such file or directory
分析:看了一下configure,应该是生成文件出错
经验:由于过程中,解压的文件,cp的文件,安装的文件的权限都有些不同,为了省事,干脆将所用目录下的文件都赋予文件主权限
chown -R globus 文件目录
这样之后,好多因为权限出现的问题基本不见了 |
|
编译失败!求助! 读书笔记, 软件技术
enya(游客)发表评论于2006/5/25 15:46:51 |
我在globus下执行命令make,后来编译失败,下面就是开始出错的地方.
请高手帮帮我!
nit:
stubs:
compileStubs:
[javac] Compiling 105 source files to /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/classes
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/NotificationConsumerSOAPBindingStub.java:430: cannot resolve symbol
[javac] symbol : variable cachedSerFactries
[javac] location: class org.oasis.wsn.NotificationConsumerSOAPBindingStub
[javac] cachedSerFactries.add(beansf);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/NotificationProducerSOAPBindingStub.java:234: package javax.xml.amespace does not exist
[javac] qName = new javax.xml.amespace.QName("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd", ">SetTerminationTimeResponse");
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/NotificationProducerSOAPBindingStub.java:517: cannot resolve symbol
[javac] symbol : variable cachedSeClasses
[javac] location: class org.oasis.wsn.NotificationProducerSOAPBindingStub
[javac] cachedSeClasses.add(cls);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/SubscriptionManagerSOAPBindingStub.java:99: package javax.xml.namespae does not exist
[javac] oper.addParameter(new javax.xml.namespace.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", "PauseSubscription"), new javax.xml.namespae.QName("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd", ">PauseSubscription"), org.oasis.wsn.PauseSubscription.class, org.apache.axis.description.ParameterDesc.IN, false,
false);
[javac]
^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/SubscriptionManagerSOAPBindingStub.java:357: cannot resolve symbol
[javac] symbol : variable cachedDeerFactories
[javac] location: class org.oasis.wsn.SubscriptionManagerSOAPBindingStub
[javac] cachedDeerFactories.add(beandf);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/SubscriptionManagerSOAPBindingStub.java:500: cannot resolve symbol
[javac] symbol : variable cachederQNames
[javac] location: class org.oasis.wsn.SubscriptionManagerSOAPBindingStub
[javac] cachederQNames.add(qName);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/SubscriptionManagerSOAPBindingStub.java:792: cannot resolve symbol
[javac] symbol : method seSOAPActionURI (java.lang.String)
[javac] location: class org.apache.axis.client.Call
[javac] _call.seSOAPActionURI("http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification/PauseSubscription");
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/WSBaseNotificationServiceLocator.java:194: cannot resolve symbol
[javac] symbol : variable serviceEndpointInterface
[javac] location: class org.oasis.wsn.WSBaseNotificationServiceLocator
[javac] return getPort(serviceEndpointInterface);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsn/WSBaseNotificationServiceLocator.java:207: cannot resolve symbol
[javac] symbol : variable serviceEndpointInterface
[javac] location: class org.oasis.wsn.WSBaseNotificationServiceLocator
[javac] java.rmi.Remote _stub = getPort(serviceEndpointInterface);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupEntrySOAPBindingStub.java:133: cannot resolve symbol
[javac] symbol : variable qNae
[javac] location: class org.oasis.wsrf.servicegroup.ServiceGroupEntrySOAPBindingStub
[javac] cachedSerQNames.add(qNae);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupEntrySOAPBindingStub.java:272: cannot resolve symbol
[javac] symbol : class QNae
[javac] location: package namespace
[javac] qName = new javax.xml.namespace.QNae("http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd", "DeleteType");
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupRegistrationSOAPBindingStub.java:254: cannot resolve symbol
[javac] symbol : method ad (java.lang.Class)
[javac] location: class java.util.Vector
[javac] cachedSerClasses.ad(cls);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupRegistrationSOAPBindingStub.java:394: cannot resolve symbol
[javac] symbol : method dd (java.lang.Class)
[javac] location: class java.util.Vector
[javac] cachedSerClasses.dd(cls);
[javac] ^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupRegistrationSOAPBindingStub.java:542: package org.aache.axis.encoding does not exist
[javac] org.apache.axis.encoding.DeserializerFactory df = (org.aache.axis.encoding.DeserializerFactory)
[javac]
^
[javac] /usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build/stubs/src/org/oasis/wsrf/servicegroup/ServiceGroupSOAPBindingStub.java:134: package org.oass.wsrf.lifetime does not exist
[javac] cls = org.oass.wsrf.lifetime.TerminationNotification.class;
[javac] ^
[javac] 15 errors
BUILD FAILED
/usr/local/globus-4.0.1/source-trees/wsrf/java/core/source/build.xml:197: Compile failed; see the compiler error output for details.
Total time: 1 minute 17 seconds
ERROR: Build has failed
make: *** [globus_java_ws_core] Error 1
|
|
回复:GT4.0.0 的安装历程1 读书笔记, 软件技术
test(游客)发表评论于2006/3/12 16:35:12 |
只能说GT做的烂
以下引用tian(游客)在2005-9-20 14:30:29的评论:<br>我在 ./configure --prefix=$GLOBUS_LOCATION这一步是出现这样的错误:./configure: line 88: conf18107.sh: Permission denied./configure: line 89: conf18107.sh: Permission deniedchmod: cannot access `conf18107.sh': No such file or directory./configure: line 201: conf18107.file: Permission deniedconfigure: error: sources are in ., but `cd .' does not work请问是什么原因? (万分紧急) |
|
回复:GT4.0.0 的安装历程1 读书笔记, 软件技术
tian(游客)发表评论于2005/9/20 14:30:29 |
<br>
我在 ./configure --prefix=$GLOBUS_LOCATION这一步是出现这样的错误:
./configure: line 88: conf18107.sh: Permission denied
./configure: line 89: conf18107.sh: Permission denied
chmod: cannot access `conf18107.sh': No such file or directory
./configure: line 201: conf18107.file: Permission denied
configure: error: sources are in ., but `cd .' does not work
请问是什么原因? (万分紧急) |
|
» 1 »
|