標籤:安裝步驟 linux 註冊破解 error while loading shared libraries 電磁模擬軟體
FEKO6.0各版本(來源於寺院的研究僧):
Intel/AMD (32-bit x86)
Windows (XP, Vista, Windows 7, Server 2003)
feko_distrib_6.0_win32.exe (320 MByte)
Linux
feko_distrib_6.0_LINUX.tar.gz (392 MByte)
Intel/AMD (64-bit x86_64)
Windows (XP, Vista, Windows 7, Server 2003, Server 2008, Server 2008 R2)
feko_distrib_6.0_win64.exe (372 MByte)
Intel (64-bit XEON EM64T)
Linux
feko_distrib_6.0_LINUX_EM64T.tar.gz (362 MByte)
AMD (64-bit Opteron and Athlon)Linux
feko_distrib_6.0_LINUX_AMD64.tar.gz (319 MByte)
(本文以該安裝程式為例,在64位linux下安裝)
終端進入安裝目錄,執行 sudo ./INSTALL.SH,輸入管理員密碼,按以下步驟進行安裝:
FEKO INSTALLATION
=================
Welcome to the FEKO installation script forworkstations which will guide
you interactively step by step through theinstallation process.
This installation script will install FEKOon your system, or if previously
installed, it will perform an update ofFEKO saving the old files to a
backup directory. For a new installation,this installation script will
also assist you in collecting theinformation required to get your FEKO
license file.
---> Press return to continue
一直按斷行符號鍵繼續到出現下面的介面:
----------------------
In order to continue with the FEKOinstallation, you have to accept
the FEKO licence agreement. This can befound in the file LICENCE.TXT
of the installation medium.
You have these choices now:
1 =Show me this licence agreement now
2 =I have read the licence agreement and accept it
3 =I do not agree to the licence agreement
Please select [3] 2
選擇2並一直按斷行符號直到出現下面介面:
Fora parallel installation of FEKO on multiple nodes in the following
acommand is required to run utilities on the other nodes, or in some
cases also to copy files from this node to the other remote nodes (if
nonetwork file system is used). You can choose either the traditional
rsh/rcp commands (remsh under HP-UX), or the secure shell ssh/scp. The
oneselected should already have been setup and should be working, but
this will also be checked later.
Youhave these choices now:
1 = Cluster installation using ssh/scp
2 = Cluster installation using rsh/rcp (remsh for HP-UX)
3 = Install FEKO on a single node only (then no remote access
or remote copying required)
Please select [1] 1
選擇1並一直按斷行符號到下面介面
----------------------
Determining which MPI implementation to beused for this platform LINUX
MPI is a parallel communication protocol usedfor parallel versions of FEKO
butalso for multi-core CPUs and thus even for sequential licences this is
made available (as a sequential licence of FEKO supports all cores ofyour
CPU
ForLinux different communication protocols are supported for parallel
FEKO versions:
MPICH2 is a general MPI library supporting shared memory communication
and Ethernet. The run-time environment is included as with the FEKO
installation.
Alternatively, FEKO also provides Intel MPI (run-time environment
included with the FEKO installation) which in addition to shared memory
(e.g. for muli-core environments) or Ethernet also supportsinterconnects
like Myrinet or Infiniband through suitable DAPL providers (for more
details see the FEKO Installation Guide).
When running FEKO on an SGI Altix, then also the highly optimised
SGI MPT is supported by FEKO. This must be available on the system
(i.e. not included with FEKO)
Checking for 1 = MPICH2 ... found (part of FEKO installation)
Checking for 11 = Intel MPI ... found (part of FEKO installation)
Checking for 4 = SGI MPT ... ./INSTALL.SH: 5027: rpm: not found
NOT found
Pleaseselect now which of these MPI implementations should be used.
Typically the default is detected automatically and should be fine,
i.e. just press return. You can also easily change this later manually,
onejust has to change the value of FEKO_WHICH_MPI in the initfeko
script.
Please enter which MPI to use (1/4/11)? [11] 1
選擇1並斷行符號繼續
----------------------
Determining the target path for theinstallation.
Please enter the installation path for FEKO (use an absolute
directory name, not variables such as $HOME or ~). To use the
default just press return: [/opt/feko/6.0]
直接斷行符號使用預設安裝路徑
下面就是自動解壓檔案操作,按斷行符號直到出現下面的介面,安裝完成
----------------------
Finished.
###########完成############
添加環境變數:
使用管理員權限開啟/etc/profile檔案,在檔案的末尾追加下面的內容:
FEKO_HOME=/opt/feko/6.0
export FEKO_HOME
FEKO_USER_HOME=$HOME/.feko/6.0
export FEKO_USER_HOME
FEKO_WHICH_MPI=1
export FEKO_WHICH_MPI
此時就可以進入/opt/feko/6.0/bin目錄運行secfeko_gui程式,會出現一個錯誤對話方塊,對話方塊中有類似於以下的內容,將紅色或綠色標出的機器碼記錄下來。
Usedlicence number: Not available
Machine codes for host"yhq-desktop":
mach_code_01 of type 11: "STQTCFVNSLBDUOCJ"
mach_code_02 of type 6: "E0CB4ED1E2E7"
mach_code_03 of type 2:"7F0101"
mach_code_04 of type 1:"79656B24585661565C5452"
mach_code_05 of type
後續工作:
#############軟體註冊#############
註冊方法和windows下的註冊方法類似,註冊程式和方法見附件(註冊程式來源於網路,僅用於學習和交流使用,請支援正版)。
將產生一個secfeko.dat檔案拷貝到/opt/feko/6.0/license目錄下,就全部安裝完成了。
//////////關於執行出現的一些問題的解決方案:
在 Linux 下,如果你寫好了自己的動態鏈接庫,需要在其它程式裡調用,則需要讓這些程式能找到這些動態鏈接庫。如果設置不對,會出現類似如下的錯誤:
test: error while loading shared libraries:libhoops1812.so: cannot open shared object file: Nosuch file or directory
這是因為沒有把動態鏈接庫的安裝路徑(例如說是 /usr/local/lib )放到變量 LD_LIBRARY_PATH 裡。
這時,可以用命令 export來臨時測試確認是不是這個問題:
export LD_LIBRARY_PATH=/usr/local/lib
在終端裡運行上面這行命令,再運行這個可執行檔案,如果運行正常就說明是這個問題。
接下來的問題是:以上做法,只是臨時設置變量 LD_LIBRARY_PATH ,下次開機,一切設置將不複存在;如何把這個值持續寫到 LD_LIBRARY_PATH 裡呢?
我們可以在 ~/.bashrc或者 ~/.bash_profile 中加入 export 語句,前者在每次登陸和每次開啟 shell 都讀取一次,後者只在登陸時讀取一次。我的習慣是加到 ~/.bashrc 中,在該檔案的未尾,可採用如下語句來使設置生效:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
修改完後,記得關掉當前終端並重新開啟一個新的終端,從而使上面的配置生效。
本文出自 “一夢一程-記錄學習點滴” 部落格,請務必保留此出處http://jincheng.blog.51cto.com/4625177/1540395