环境变量
方法从CERTI官网摘抄,对环境变量配置如下。 注意 第一个PATH重要,不然运行时,不能装载rtia
export CERTI_HOST=localhost
export CERTI_HOME=/home/zchx/Documents/Build_CERTI/RTIG:$CERTI_HOME
export CERTI_FED=/home/zchx/Documents/Build_CERTI/RTIG:$CERTI_FED
export CERTI_HTTP_PROXY=""
问题:RTIA:: Reason: gethostbyname gave NULL answer for hostname
Hello,we know that CERTI uses the TCP protocol,
we know that some computers are using an HTTP proxy,
an interesting contribution has been to use this proxy to do
wide area distributed simulations,
but this can lead to an error.
That is to say, I download CERTI, I run the standard configuration
script (myCERTI_env.sh which includes CERTI_HOST=localhost),
I launch the billard federate and it does not work.
billard -n1 -fTest -FTest.fed
CERTI Billard 3.3.3cvs
with TIMESTAMP. If you want without TIMESTAMP add -e option.
RTIA:: RTIA has thrown NetworkError exception.
RTIA:: Reason: gethostbyname gave NULL answer for hostname <proxy>
with error <Resource temporarily unavailable>
or
billard -n1 -fTest -FTest.fed
CERTI Billard 3.3.3cvs
with TIMESTAMP. If you want without TIMESTAMP add -e option.
RTIA:: RTIA has thrown NetworkError exception.
RTIA:: Reason: Proxy connection refused: HTTP/1.0 403 Forbidden
I think that we should avoid that because this is the procedure
that we recommend to all the beginners.
Today the solution exists :
export CERTI_HTTP_PROXY=""
What happens ?
In this simplest case, CERTI tries to use the HTTP proxy
but it does not work or it does not agree the request.
Why to use this proxy in the case of a standalone computer
or in the case of a local network ?
TCP does not imply HTTP !
Even why to use this proxy if we can ask for the opening
of the good TCP port ?
Now the poll.
Do you prefer the introduction of a new variable when the
usage of HTTP is wanted ?
Do you prefer that we modify the standard configuration files ?
Do you prefer an intermediary solution: To discover that
the federation is working locally and to disactivate the
HTTP proxy usage ?
Thank you,
Pierre
问题:RTIG cannot find FED file
该文档只需要放在rtig能找到的地方(环境变量CERTI_HOME指定的目录下)注意:FED文件需要放在CERTI_FED 下,同时为了保险起见,把他放在RTIG 和 Billard 目录下,就更好了。
终了:开始运行测试程序 ./billard2d -n "1" -f "fTest" -F "Test.fed"
若你和我一样同在研究CERTI HLA 网络架构,可以联系我,方式见上