AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-813146

bit's questions

Martin Hope
bit
Asked: 2018-06-13 11:13:29 +0800 CST

编译 xpdf 时对符号 acos@@GLIBC_2.2.5 的未定义引用

  • 0

使用 .xpdf 编译时出现以下错误make。我试过使用命令:LIBS=-l make但它不起作用。我知道问题是c编译器无法识别源代码中的数学代码,因为数学库对它不可用,但我不知道如何修复它。

[ 71%] Linking CXX executable pdftohtml 
    /usr/bin/ld: CMakeFiles/xpdf_objs.dir/Gfx.cc.o: undefined reference to symbol 'acos@@GLIBC_2.2.5'
    //usr/lib64/libm.so.6: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    make[2]: *** [xpdf/CMakeFiles/pdftohtml.dir/build.make:219: xpdf/pdftohtml] Error 1
    make[1]: *** [CMakeFiles/Makefile2:428: xpdf/CMakeFiles/pdftohtml.dir/all] Error 2
    make: *** [Makefile:130: all] Error 2

我已将Makefile和CmakeLists.txt放在 pastebin 上以获取更多信息。

compiling gcc c make glibc
  • 1 个回答
  • 3601 Views
Martin Hope
bit
Asked: 2018-06-09 11:55:35 +0800 CST

如何从路径中删除 texlive

  • 1

我想在使用rm -rf命令删除它后从我的 PATH 中删除 texlive,并且我已经删除了 .bashrc 中 texlive 的路径,但是当我运行命令时:echo $PATH我仍然在我的路径中看到 texlive:

/home/tonomo/anaconda3/bin:/home/tonomo/anaconda3/bin:/home/tonomo/anaconda3/bin:/home/tonomo/anaconda3/bin:/usr/local/texlive/2018/bin/x86_64-linux:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/tonomo/.local/bin:/home/tonomo/bin

另外我不确定为什么我的路径列表中有重复的路径,这正常吗?

更新

@Sebastian Stark 提供的答案是我解决这个问题所需要的。

environment-variables bashrc .profile texlive
  • 1 个回答
  • 386 Views
Martin Hope
bit
Asked: 2018-05-13 01:55:16 +0800 CST

如何设置路径,以便同一程序从 GUI 和命令行读取它?

  • 4

我安装了 texlive,我想将它作为环境变量添加到我的路径中,以便当我从 GUI 或命令行启动 emacs 时,Emacs AucTeX 可以读取它。到目前为止,我已经读到 emacs 只从~/.profile.

因此,我的计划是将 texlive 添加到我的路径中,.profile以使 emacs GUI 能够读取它,然后~/profile从中获取源.bashrc,以便在我的非登录交互式 GNOME 终端中启动的 emacs 看到路径。

注意:我的主目录中没有.profile文件,只有在我的/etc目录中,我不想碰那个文件,但我的.bash_profile主目录中有一个。但是,我读到它.bash_profile仅针对我不使用的交互式登录会话(即控制台模式)运行。

我的计划是在我的主目录中创建一个.profile文件并执行以下操作:

第 1 步:创建~/.profile

第 2 步:将 texlive 环境变量添加到路径中.profile

export PATH=/usr/local/texlive/2018/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2018/texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2018/texmf-dist/doc/info:$INFOPATH

第 3 步:.profile来源.bashrc

#Adding this at the bottom or start of .bashrc to source .profile when the terminal is opened.

if [-s ~/.profile]; then;
    source ~/.profile;
fi

我知道由于存在导致无限循环的风险,人们.profile对采购有很多担忧。.bashrc但是,由于我是.profile从头开始创建文件,所以这不会有问题,因为它不包含任何引用的代码.bashrc。

我的问题:

  1. 你觉得我的计划怎么样?
  2. 你认为它会起作用吗?
  3. 您对如何改进它或其他替代方案有任何建议吗

附加信息:我.bashrc只包含源代码~/etc/bashrc和一个由 Anaconda 自动添加的环境变量:export PATH="/home/Fedora_User/Anaconda3/bin:$PATH"

请记住,我知道 gnome-terminal 可以作为交互式登录 shell 运行,但我从未这样做过,也不知道它是否会影响我的终端会话的性能。

bash emacs environment-variables bashrc .profile
  • 1 个回答
  • 1751 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve