当我不能使用sudo时,如何更新我的boost版本?

2024-06-24 13:45:04 发布

您现在位置:Python中文网/ 问答频道 /正文

我是Python和这个网站的新手,我想得到你的帮助解决这个问题

我在一个项目中,我必须登录到一个远程集群进行批处理。你知道吗

到现在为止,我已经面对这个问题一个星期了,一直在这里和阿斯库本图寻找可能的解决办法,但都没有奏效。你知道吗


我正在尝试配置$HOME/external/PDF-6.1.6

代码

ssh -XY trentacoollime@starbucks.com

cd external/LHAPDF-6.1.6


./configure --prefix=$HOME/external

终端

checking for Cython >= 0.19... no

checking if the g++ compiler accepts the -pedantic flag... yes

checking if the g++ compiler accepts the -Wall flag... yes

checking if the g++ compiler accepts the -Wno-long-long flag... yes

checking if the g++ compiler accepts the -Qunused-arguments flag... no

checking for Boost headers version >= 1.41.0... no

configure: error: cannot find Boost headers version >= 1.41.0

为了解决问题

sudo apt-get install libboost-all-dev

但是,当我尝试执行代码时

trentacoollime is not in the sudoers file. This incident will be reported.

为了让自己成为sudoer,我几乎尝试了这个网站上给出的所有方法,但都没有奏效。你知道吗

我推荐的简短列表包括以下链接

https://www.tecmint.com/fix-user-is-not-in-the-sudoers-file-the-incident-will-be-reported-ubuntu/

https://unix.stackexchange.com/questions/179954/username-is-not-in-the-sudoers-file-this-incident-will-be-reported

https://askubuntu.com/questions/124166/how-do-i-add-myself-into-the-sudoers-group

https://askubuntu.com/questions/151200/my-main-username-is-not-in-the-sudoers-file


请注意,当我在自己的机器(集群之外)中时,它会给我相同的终端错误

configure: error: cannot find Boost headers version >= 1.41.0

第一次尝试。然而,当我尝试

sudo apt-get install libboost-all-dev

它使我成功地配置了LHAPDF-6.1.6


因此,我相信sudolibboost安装代码是一个很好的答案,但是我想知道如何在集群环境中实现。你知道吗

考虑到我的顾问告诉我,在这个集群中,它无论如何都不会起作用,我不应该尝试这样做,我总结说,找到一种新的方法将自己添加为sudoer并不是一种选择

因此,对于我的新手来说,可能的答案是

  • 我想知道是否有什么好方法可以将boost版本从安装到我的trentacoollime远程集群帐户的过程中链接到我自己的机器上

  • 我有这些(还有一些也有libboost的标题)
    (我的主目录是/storage/5/home)

    /usr/lib64/libu文件系统-苏山.5 /usr/lib64/libboost_文件系统.so.5 /usr/lib64/libboost\u程序\u选项-苏山.5 /usr/lib64/libu程序_选项。所以.5 /usr/lib64/libu系统-苏山.5 /usr/lib64/libboost_系统.so.5

我能利用图书馆里的人吗?你知道吗

  • 你还有什么好主意!你知道吗

我真的很感谢你的帮助

我很想打破这件事,并希望有一个简单的解释,我可以学习。你知道吗

非常感谢。你知道吗


Tags: theincomifcompilerisusrnot