|
本帖最后由 eqzero 于 2010-6-17 14:54 编辑
前段时间有兄弟发现安装ubuntu10.4版本后无法运行fah,找了国外论坛的资料,终于解决:
原帖:
http://foldingforum.org/viewtopic.php?f=44&t=12939
测试通过环境:
ubuntu9.04升级10.4后完成当前运行任何之后无法继续运行,提示:- fah6: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not
- defined in file libc.so.6 with link time reference
复制代码 出错状况与坛内兄弟的提示一样,理论上修补方法也一致的。
修补步骤:(注意!一定要用你平时计算fah的用户名登录,虽然下面升级步骤会有错误提示,那是正常的,不要使用"sudo"命令以root用户权限运行下面指令!)- cd ~
- wget http://darkswarm.org/whosyerdaddy-0.6.sh
- chmod +x whosyerdaddy-0.6.sh
- cp -a /lib ~/lib64-fah
- cd ~/lib64-fah
- ~/whosyerdaddy-0.6.sh
复制代码 上述指令完成后,运行:- LD_LIBRARY_PATH=~/lib64-fah ./fah6 -smp 2 -verbosity 9
复制代码 即可运行smp2,如果你是4核或者4线程的机器,修改-smp 后面的2为4;
如果需要运行bigadv包,运行:- LD_LIBRARY_PATH=~/lib64-fah ./fah -smp 8 -bigadv -verbosity 9
复制代码 即可。
下面是运行命令和返回结果的示例,如果你运行正常,应该看到与下面类似的画面:- fah@exp:~$ cat /etc/issue.net
- Ubuntu lucid (development branch)
- fah@exp:~$ cd ~
- fah@exp:~$ wget http://darkswarm.org/whosyerdaddy-0.6.sh
- --2010-05-01 07:27:43-- http://darkswarm.org/whosyerdaddy-0.6.sh
- Resolving darkswarm.org... 85.11.66.60
- Connecting to darkswarm.org|85.11.66.60|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 4408 (4.3K) [application/x-sh]
- Saving to: “whosyerdaddy-0.6.sh”
- 100%[=======================================================================>] 4,408 --.-K/s in 0.001s
- 2010-05-01 07:27:43 (3.96 MB/s) - “whosyerdaddy-0.6.sh” saved [4408/4408]
- fah@exp:~$ chmod +x whosyerdaddy-0.6.sh
- fah@exp:~$ cp -a /lib ~/lib64-fah
- cp: cannot create special file `/home/fah/lib64-fah/udev/devices/net/tun': Operation not permitted
- cp: cannot create special file `/home/fah/lib64-fah/udev/devices/console': Operation not permitted
- cp: cannot create special file `/home/fah/lib64-fah/udev/devices/loop0': Operation not permitted
- cp: cannot create special file `/home/fah/lib64-fah/udev/devices/null': Operation not permitted
- cp: cannot create special file `/home/fah/lib64-fah/udev/devices/ppp': Operation not permitted
- cp: cannot open `/lib/ufw/user.rules' for reading: Permission denied
- cp: cannot open `/lib/ufw/user6.rules' for reading: Permission denied
- fah@exp:~$ cd ~/lib64-fah
- fah@exp:~/lib64-fah$ ~/whosyerdaddy-0.6.sh
- whosyerdaddy 0.6, workaround for broken Folding@Home client 6.29 binaries
- Copyright (c) 2010 by Kris Rusocki <kszysiu@gmail.com>
- Licensed under GPLv2
- Checking for awk bc cat chmod cut dd grep head od readelf sed tac tr ...done.
- WARNING: no STRTAB, going with 0x30 offset %-| and single-page size. YMMV.
- DYNSYM at 0x00003c28
- processing symbol __rawmemchr
- Found at position 99 (assuming dynsym)
- Symbol processed. Perhaps.
- processing symbol strchr
- Found at position 1652 (assuming dynsym)
- Symbol processed. Perhaps.
- processing symbol strlen
- Found at position 749 (assuming dynsym)
- Symbol processed. Perhaps.
- processing symbol strcpy
- Found at position 89 (assuming dynsym)
- Symbol processed. Perhaps.
- Rebranding shared objects... done.
- fah@exp:~/lib64-fah$ cd ~/
- fah@exp:~$ cd fah
- fah@exp:~/fah$ LD_LIBRARY_PATH=~/lib64-fah ./fah6 -smp 2 -verbosity 9
- Note: Please read the license agreement (fah6 -license). Further
- use of this software requires that you have read and accepted this agreement.
- 2 cores detected
- --- Opening Log file [April 7 04:59:38 UTC]
- # Linux SMP Console Edition ###################################################
- ###############################################################################
- Folding@Home Client Version 6.29
- http://folding.stanford.edu
- ###############################################################################
- ###############################################################################
- Launch directory: /home/fah/fah
- Executable: ./fah6
- Arguments: -smp 2 -verbosity 9
- [04:59:38] Configuring Folding@Home...
- User name [Anonymous]?
- Team Number [0]?
- Passkey []?
- Ask before fetching/sending work (no/yes) [no]?
- Use proxy (yes/no) [no]?
- Acceptable size of work assignment and work result packets (bigger units
- may have large memory demands) -- 'small' is <5MB, 'normal' is <10MB, and
- 'big' is >10MB (small/normal/big) [normal]? big
- Change advanced options (yes/no) [no]? yes
- Core Priority (idle/low) [idle]?
- Disable highly optimized assembly code (no/yes) [no]?
- Interval, in minutes, between checkpoints (3-30) [15]?
- Memory, in MB, to indicate (998 available) [998]?
- Set -advmethods flag always, requesting new advanced
- scientific cores and/or work units if available (no/yes) [no]? yes
- Ignore any deadline information (mainly useful if
- system clock frequently has errors) (no/yes) [no]?
- Machine ID (1-16) [1]?
- The following options require you to restart the client before they take effect
- Disable CPU affinity lock (no/yes) [no]?
- Additional client parameters []?
- IP address to bind core to (for viewer) []?
- [05:00:03] - Ask before connecting: No
- [05:00:03] - User name: Anonymous (Team 0)
- [05:00:03] - User ID not found locally
- [05:00:03] + Requesting User ID from server
- [05:00:03] - Getting ID from AS:
- [05:00:03] Connecting to http://assign.stanford.edu:8080/
- [05:00:04] Posted data.
- [05:00:04] Initial: 0C35; - Received User ID = 350C3F556027DD1D
- [05:00:04] - Machine ID: 1
- [05:00:04]
- [05:00:04] Work directory not found. Creating...
- [05:00:04] Could not open work queue, generating new queue...
- [05:00:04] - Preparing to get new work unit...
- [05:00:04] - Autosending finished units... [April 7 05:00:04 UTC]
- [05:00:04] Trying to send all finished work units
- [05:00:04] + No unsent completed units remaining.
- [05:00:04] - Autosend completed
- [05:00:04] Cleaning up work directory
- [05:00:04] + Attempting to get work packet
- [05:00:04] - Will indicate memory of 998 MB
- [05:00:04] - Connecting to assignment server
- [05:00:04] Connecting to http://assign.stanford.edu:8080/
- [05:00:04] Posted data.
- [05:00:04] Initial: ED82; - Successful: assigned to (130.237.232.140).
- [05:00:04] + News From Folding@Home: Welcome to Folding@Home
- [05:00:04] Loaded queue successfully.
- [05:00:04] Connecting to http://130.237.232.140:8080/
- [05:00:05] Posted data.
- [05:00:05] Initial: 0000; - Receiving payload (expected size: 1799542)
- [05:00:36] - Downloaded at ~56 kB/s
- [05:00:36] - Averaged speed for that direction ~56 kB/s
- [05:00:36] + Received work.
- [05:00:36] + Closed connections
- [05:00:36]
- [05:00:36] + Processing work unit
- [05:00:36] Core required: FahCore_a3.exe
- [05:00:36] Core not found.
- [05:00:36] - Core is not present or corrupted.
- [05:00:36] - Attempting to download new core...
- [05:00:36] + Downloading new core: FahCore_a3.exe
- [05:00:36] Downloading core (/~pande/Linux/AMD64/Core_a3.fah from www.stanford.edu)
- [05:00:36] Initial: AFDE; + 10240 bytes downloaded
- 。。。。。。
- [05:00:38] Initial: C7AF; + 1885206 bytes downloaded
- [05:00:38] Verifying core Core_a3.fah...
- [05:00:38] Signature is VALID
- [05:00:38]
- [05:00:38] Trying to unzip core FahCore_a3.exe
- [05:00:38] Decompressed FahCore_a3.exe (4415280 bytes) successfully
- [05:00:38] + Core successfully engaged
- [05:01:02]
- [05:01:02] + Processing work unit
- [05:01:02] Core required: FahCore_a3.exe
- [05:01:02] Core found.
- [05:01:02] Working on queue slot 01 [April 7 05:01:02 UTC]
- [05:01:02] + Working ...
- [05:01:02] - Calling './FahCore_a3.exe -dir work/ -nice 19 -suffix 01 -np 2 -checkpoint 15 -verbose -lifeline 10668 -version 629'
- [05:01:03]
- [05:01:03] *------------------------------*
- [05:01:03] Folding@Home Gromacs SMP Core
- [05:01:03] Version 2.17 (March 6, 2010)
- [05:01:03]
- [05:01:03] Preparing to commence simulation
- [05:01:03] - Looking at optimizations...
- [05:01:03] - Created dyn
- [05:01:03] - Files status OK
- [05:01:03] - Expanded 1799030 -> 2392545 (decompressed 132.9 percent)
- [05:01:03] Called DecompressByteArray: compressed_data_size=1799030 data_size=2392545, decompressed_data_size=2392545 diff=0
- [05:01:03] - Digital signature verified
- [05:01:03]
- [05:01:03] Project: 6015 (Run 0, Clone 222, Gen 34)
- [05:01:03]
- [05:01:03] Assembly optimizations on if available.
- [05:01:03] Entering M.D.
- Starting 2 threads
- NNODES=2, MYRANK=0, HOSTNAME=thread #0
- NNODES=2, MYRANK=1, HOSTNAME=thread #1
- Reading file work/wudata_01.tpr, VERSION 4.0.99_development_20090605 (single precision)
- Note: tpx file_version 68, software version 70
- Making 1D domain decomposition 2 x 1 x 1
- starting mdrun 'Protein in POPC'
- 17500002 steps, 35000.0 ps (continuing from step 17000002, 34000.0 ps).
- [05:01:10] Completed 0 out of 500000 steps (0%)
复制代码 |
评分
-
查看全部评分
|