1 先下载root 的源文件。
我用的是这个:root_v5.19.04.source.tar.gz
2 解压缩
tar -xvzf root_v5.24.00.source.tar.gz
之后产生了root的文件夹
3 安装
安装路径
set ROOTSYS to the `root' directory:
sh family:
$ export ROOTSYS=/home/flyriver/downloads/root
3.1 $ ./configure --help
3.2 $ ./configure linux //for intel 32 bit machine
( ./configure linuxx8664gcc)// for amd 64 machine
3.3 if gcc is not installed
$sudo apt-get install build-essential,libX11-dev,libxft-dev,xorg-dev
3.4$ make [or, make -j2 for dual CPU machines]
3.5$ make install
4 此时只能在这个文件夹下的目录下运行,若想让root在所有文件夹
下都可以运行,或者你就把文件解压缩/usr/local/bin然后安装,
或者你需要编辑库文件,/etc/ld.so.conf,需要管理员帐号,将
root的lib位置告诉它,也就是添加一行,
include /etc/ld.so.conf.d/*.conf
/usr/lib/atlas
/usr/local/lib
/home/flyriver/downloads/root/lib //此行为后来添加
5 这里还没有完,需要编译ld.so.conf,然后更改才能生效。
具体为在管理员帐号下运行 ldconfig指令
root@luoyang:/home/flyriver# ldconfig
终于,在折腾了三天之后,将root安装在自己的电脑上了,爽!!!!!
*************************************************************
如果上面的方法不起作用,你所需要做的是,编辑
.profile
文件
在
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
之后 , 添加
PATH=/home/gyuan/downloads/root/bin:$PATH
export PATH
结束后,log off 然后 login 即可
下面是更详细的
- To add that PATH to every user but root, add the line(s) to /etc/profile
- To add that PATH to root, add those line(s) to /root/.profile
- To add that PATH to a specific user(s), add the line(s) to /home/user/.profile
没有评论:
发表评论