现在需要安装几个依赖库,例如AGG,BOOST之类。但是我没有ROOT权限,请问该如何将依赖库安装到个人目录下,并在安装软件的时候指定这些库的目录。
现在骗分得太多,等有正解了之后再赏
linux下无root权限如何安装依赖库
答案:3 悬赏:30 手机版
解决时间 2021-03-21 02:36
- 提问者网友:呐年旧曙光
- 2021-03-20 02:55
最佳答案
- 五星知识达人网友:舍身薄凉客
- 2021-03-20 03:57
请参考这个网站:linux下非root用户安装软件入门
网址 www点tlanyan点me/work-with-linux-without-root-permission/
内容节录:从windows转移到Linux的用户最开始总会有各种不适,因为这种不适最终放弃linux的不在少数。对于这种人只能说可惜,还没有领略到linux的美好就过早放弃了。还有就是用着Linux还不错,但是因为熟悉了在个人电脑上使用,有着各种权限。突然发现工作的时候却只能使用普通账户,然后各种不适应,然后各种纠结。本文主要面向对象是第二类人群,简要的介绍如果在没有root权限的情形下良好的使用Linux来工作......
网址 www点tlanyan点me/work-with-linux-without-root-permission/
内容节录:从windows转移到Linux的用户最开始总会有各种不适,因为这种不适最终放弃linux的不在少数。对于这种人只能说可惜,还没有领略到linux的美好就过早放弃了。还有就是用着Linux还不错,但是因为熟悉了在个人电脑上使用,有着各种权限。突然发现工作的时候却只能使用普通账户,然后各种不适应,然后各种纠结。本文主要面向对象是第二类人群,简要的介绍如果在没有root权限的情形下良好的使用Linux来工作......
全部回答
- 1楼网友:痴妹与他
- 2021-03-20 05:14
1:在网上找到各种版本的安装包(下面有附件)
2:解压,然后打开解压后的文件夹 在这个目录下面打开终端
3:./configure --prefix=/home/t../software(这个路径就是你想把你的netcdf安装的位置)
4:sudo apt install netcdf-bin
5:输入密码
6:测试 在终端输入ncdump
ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-k] [-x] [-s] [-t|-i] [-g ...] [-w] file
[-c] coordinate variable data and header information
[-h] header information only, no data
[-v var1[,...]] data for variable(s) ,... only
[-b [c|f]] brief annotations for c or fortran indices in data
[-f [c|f]] full annotations for c or fortran indices in data
[-l len] line length maximum in data section (default 80)
[-n name] name for netcdf (default derived from file name)
[-p n[,n]] display floating-point values with less precision
[-k] output kind of netcdf file
[-s] output special (virtual) attributes
[-t] output time data as date-time strings
[-i] output time data as date-time strings with iso-8601 't' separator
[-g grp1[,...]] data and metadata for group(s) ,... only
[-w] with client-side caching of variables for dap urls
[-x] output xml (ncml) instead of cdl
file name of netcdf file (or url if dap access enabled)
netcdf library version 4.4.0 of mar 29 2016 11:41:40 $
出现下列就说明成功了
- 2楼网友:街头电车
- 2021-03-20 04:54
在linux环境下,应用程序调用某动态库...你只管试试。不一定好用:因为你的root用户的uid...
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯