关闭

ubuntu12.04安装fsl

4407人阅读 评论(0) 收藏 举报
分类:
1) Switch to root user
           sudo su
2) Create a folder named 'Software' under /opt
           mkdir /opt/software
3) Copy fsl to /opt/Software
           For example, the path of fsl is /home/username/fsl-5.0.0-centos5_64.tar.gz
           cp /home/username/fsl-5.0.5-centos6_64.tar.gz     /opt/software
4) Go to /opt/Software directory
           cd  /opt/software
5) Extract the package
           tar zxvf fsl-5.0.5-centos6_64.tar.gz
6) Write the environment variables to system file (Copy the commands to terminal) 
           echo "FSLDIR=/opt/software/fsl" >> /etc/profile
           echo ". \${FSLDIR}/etc/fslconf/fsl.sh" >> /etc/profile
           echo "PATH=\${FSLDIR}/bin:\${PATH}" >> /etc/profile
           echo "export FSLDIR PATH" >> /etc/profile
7) Reboot the computer 


Open a terminal and input fsl, FSL GUI will open.

And PANDA will work well.


Noted:

1) When running fslview, showing "/opt/software/fsl/bin/fslview_bin: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory" 

solution 1: sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2 /opt/software/fsl/lib/libjpeg.so.62   

solution 2: sudo apt-get install libjpeg

2) When running 'probtrackx2 --help', it happen to the below problem:
probtrackx2: error while loading shared libraries: libexpat.so.0: cannot open shared object file: No such file or directory,

solution: sudo ln -s /lib/x86_64-linux-gnu/libexpat.so.1.5.2 /usr/lib/libexpat.so.0


3) /opt/software/fsl/bin/fslview_bin: error while loading shared libraries: liblcms.so.1: cannot open shared object file: No such file or directory
solution 1: $ sudo ln -s /usr/lib/x86_64-linux-gnu/liblcms2.so.2 /opt/software/fsl/lib/liblcms.so.1



"找不到libexpat.so.0怎么办

出现ImportError libexpat.so.0 怎么办。
 
目前的Linux,,该文件被移到了lib目录下,而不是/usr/lib,且名称已经改为libexpat.so.1。这也是一个链接。
 
查看其属性,在我的系统中会发现其是指向libexpat.so.1.5.2的(你的电脑上可能有些不同)。于是将libexpat.so.1.5.2复制到/usr/lib目录下,将其改名为libexpat.so.0即可。
 
  或者在终端输入命令:sudo ln -s /lib/libexpat.so.1.5.2 /usr/lib/libexpat.so.0建立链接也行。
  
这样,如果安装某个程序时出现ImportError libexpat.so.0 就可以解决了。
"


Reference:

http://hi.baidu.com/heart_eternal/item/3d4049d15a524403e1f46f12

http://wenku.baidu.com/link?url=Ts896gqQxYpPsimyPclez7bgyRydaO-shVwev7fENfwjhw1XuwrYG7lu-Dj2HIM70h0gffsZ1kPdAUjGwpakr3W2tcX7KNtHbGv3qsmWDH3

http://www.2cto.com/os/201304/205391.html

http://www.eetop.cn/blog/html/52/51552-31125.html


注:如果在启动fslview的时候出现“Segmentation fault (core dumped)”的时候,可以输入“ulimit -c unlimited”来解决了,具体参考:http://ubuntuforums.org/showthread.php?t=2071988


最近在ubuntu14.04上安装fsl,遇到下面问题:/opt/software/fsl/bin/fslview_bin: error while loading shared libraries: libmng.so.1: No such file or directory.

这是因为没有安装libmng1库,ubuntu14.04带的是libmng2库;

解决的方法是:去官网上下载(http://packages.ubuntu.com/precise/libmng1)下载libmng1库;并安装(sudo dpkg -i  libmng1_1.0.10-3_amd64.deb),在安装的过程中会出现“The following packages have unmet dependencies:
 libmng1 : Depends: liblcms1 (>= 1.15-1) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).” 会要安装一个依赖库liblcms1,我们直接使用sudo apt-get install liblcms1来安装即可解决。solution 1:

1
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:435318次
    • 积分:3007
    • 等级:
    • 排名:第11668名
    • 原创:60篇
    • 转载:67篇
    • 译文:0篇
    • 评论:55条
    文章分类
    最新评论