如何从Mac OS X完全删除(所有版本的)pdftk服务器? [英] How do I completely remove (all versions of) pdftk server from Mac OS X?

查看:308
本文介绍了如何从Mac OS X完全删除(所有版本的)pdftk服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Mac OS X 10.11上遇到pdftk的问题,想从系统中删除所有痕迹,然后尝试使用已经安装的最新软件包2.02(可在StackOverflow上获得)进行新安装.

I am having trouble with pdftk on my Mac OS X 10.11 and want to remove all traces of it from my system before attempting to make a new install with the newest package 2.02 (available here on StackOverflow) which I already installed.

我怀疑系统中可能有多个版本.

I suspect there might be more than one version in my system.

当我尝试

pdftk --version

系统给出错误:

dyld: Symbol not found: __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev
Referenced from: /usr/local/bin/pdftk
Expected in: /usr/local/bin/../lib/libstdc++.6.dylib
in /usr/local/bin/pdftk
Trace/BPT trap: 5

当我跑步

export DYLD_LIBRARY_PATH=/opt/pdflabs/pdftk/lib:$DYLD_LIBRARY_PATH

并检查我得到的版本

pdftk 2.02 a Handy Tool for Manipulating PDF Documents
Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com
This is free software; see the source code for copying conditions. There is
NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

如何从系统中删除它们?

How do I remove them from the system?

我实际上在两个地方都尝试了版本"选项, 通过转到每个文件夹并输入

I actually tried the "version" option on both places, by going to each folder and typing

pdftk --version

我在/usr/local文件夹上遇到了问题,但是/opt文件夹打印了版本.看来我的计算机上确实有pdftk的两个版本,默认版本是有问题的.

I got the problem on the /usr/local folder, but the /opt folder printed the version. It seems I really do have two versions of pdftk on my computer and the default is the problematic one.

推荐答案

我不知道如何卸载默认的pdftk,但是/opt/pdflabs/pdftk/bin/pdftk中的pdftk二进制文件似乎默认使用正确的库.因此,在此期间,您只需更改PATH(在.bashrc/.bash_profile中),以使默认情况下使用的pdftk类似于

I do not know how to uninstall the default pdftk, but the pdftk binary in /opt/pdflabs/pdftk/bin/pdftk seems to use by default the correct libraries. So in the meantime you could just change your PATH (in .bashrc / .bash_profile) so that the pdftk you use by default if the good one with something like

export PATH =/opt/pdflabs/pdftk/bin:$ PATH

export PATH=/opt/pdflabs/pdftk/bin:$PATH

在/opt/pdflabs/pdftk/bin中,还有一个pdftk_uninstall.sh,它将在必要时卸载/opt/pdflabs.我想这将是pdflabs发布官方更新的pdftk的时候,它将在默认目录中安装好的版本.

In the /opt/pdflabs/pdftk/bin there is also a pdftk_uninstall.sh that will uninstall the /opt/pdflabs when necessary. I guess that will be when pdflabs releases an official updated pdftk that installs the good version in the default directories.

这篇关于如何从Mac OS X完全删除(所有版本的)pdftk服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆