Tag: osx

如何在Mac OS X上安装pdftk

我想用MacPorts安装pdftk,但是这个命令不起作用: sudo apt-get install pdftk 可以在Mac上安装吗? 我的系统规格是: Processor: 2.5 GHz Intel Core i5 Memory: 8 GB 1600 MHz DDR3 Graphics: Intel HD Graphics 4000 768 MB

Xcode 8不能存档“命令/ usr / bin / codesign失败,退出代码1”

在macOS Sierra上,我在Xcode 8上遇到了严重的问题。 当我尝试构build我的应用程序时,出现以下问题。 CodeSign /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app cd /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode export CODESIGN_ALLOCATE=/Users/me/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Users/me/Downloads/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/me/Downloads/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "-" /usr/bin/codesign –force –sign – –timestamp=none /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp.app: resource fork, Finder information, or similar detritus not allowed Command /usr/bin/codesign failed with exit code 1 然后我做了以下的terminalhttps://forums.developer.apple.com/thread/48905 ,它的工作。 但一旦我清理干净,问题就回来了。 cd /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Products/Debug-iphonesimulator/MyApp ls -al@ * xattr -c * 此解决scheme不适用于以下问题的存档。 有没有解决scheme? CodeSign /Users/me/Library/Developer/Xcode/DerivedData/MyApp-gnoiiwnelmxzdidnijaswisrwdqe/Build/Intermediates/ArchiveIntermediates/MyApp/InstallationBuildProductsLocation/Applications/MyApp.app cd /Users/me/Desktop/MyAppFolder1/MyAppFolder2/MyAppxcode […]

更改目录OSX中所有文件的文件扩展名

我有一个目录充满了一个扩展名(.txt在这种情况下),我想自动转换为另一个扩展名(.md)的文件。 是否有一个简单的terminal,我可以使用该目录中的所有文件转换为不同的文件扩展名? 或者我需要写一个正则expression式的脚本?

Mac / OS X上的/ var / lib / docker在哪里?

在安装Docker for Mac后,我正在寻找Mac上的文件夹/var/lib/docker 。 随着docker info我得到 Containers: 5 … Server Version: 1.12.0-rc4 Storage Driver: aufs Root Dir: /var/lib/docker/aufs Backing Filesystem: extfs Dirs: 339 Dirperm1 Supported: true … Name: moby ID: LUOU:5UHI:JFNI:OQFT:BLKR:YJIC:HHE5:W4LP:YHVP:TT3V:4CB2:6TUS Docker Root Dir: /var/lib/docker Debug Mode (client): false …. 但我的主机上没有目录/var/lib/docker 。 我检查了/Users/myuser/Library/Containers/com.docker.docker/但是在那里找不到任何东西。 任何想法,它位于何处?

Genymotion虚拟化引擎未find/插件加载在Mac上中止

我下载了Genymotion,但不能得到它的工作。 我一直在得到“虚拟化引擎未find,插件加载中止”。 我卸载并重新安装了它,强制退出并重新启动它,然后查看其他解决scheme无济于事。 这似乎在这里遇到了麻烦。 我在Mac OS X Yosemite版本10.10.5上运行。

从命令行构buildQt Xcode项目

现在我已经和Qt玩了几个小时了。 我发现qmake在Mac OS X上生成Xcode项目文件,而不是好的“makefile”。 我不想每次我想build立“你好,世界”启动Xcode。 如何让qmake生成常规的makefile,或者,如果这是Mac上无法完成的,我该如何从命令行编译.xcodeproj文件? 我试过xcodebuild -project myProject -alltargets 。 我得到了很多输出,然后是Abort trap 。

Matplotlib没有显示在Mac OSX中

我正在运行Mac OSX 10.5.8。 我使用macports安装matplotlib。 我从这个matplotlib库中得到了一些例子,没有修改: http://matplotlib.sourceforge.net/examples/api/unicode_minus.html 我运行它,得到没有错误,但图片不显示。 在Linux Ubuntu中,我明白了。 你知道这里可能是错的吗? 谢谢

无法在OSX Lion上使用RVM安装Ruby Enterprise Edition

这是我迄今为止所做的。 全新安装OS X Lion 从App Store下载并安装最新版本的Xcode。 安装了Git 安装了自制软件 安装了RVM 我现在试图安装ruby企业版的项目与rvm install ree并收到以下错误: $ rvm install ree ree-1.8.7-2011.03 – #installing ERROR: Error running './installer -a /Users/FaraazKhan/.rvm/rubies/ree-1.8.7-2011.03 –no-tcmalloc –dont-install-useful-gems ', please read /Users/FaraazKhan/.rvm/log/ree-1.8.7-2011.03/install.log ERROR: There has been an error while trying to run the ree installer. Halting the installation. 我已经尝试过CC=/usr/bin/gcc-4.2 rvm install ree ,结果相同。

在Mac OS上使用psycopg2的问题(优胜美地)

目前我正在python中安装psycopg2在eclipse中工作。 我发现很多问题: 第一个问题sudo pip3.4 install psycopg2不起作用,它显示以下消息 错误:找不到pg_config可执行文件。 修复: export PATH=/Library/PostgreSQL/9.4/bin/:"$PATH” 当我在我的项目中导入psycopg2我obtein: ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/psycopg2/_psycopg.so库libssl.1.0.0.dylib库libcrypto.1.0.0.dylib 修复: sudo ln -s /Library/PostgreSQL/9.4/lib/libssl.1.0.0.dylib /usr/lib sudo ln -s /Library/PostgreSQL/9.4/lib/libcrypto.1.0.0.dylib /usr/lib 现在我正在获得: ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/psycopg2/_psycopg.so,2):找不到符号:_lo_lseek64引用自:/ Library / Frameworks / Python .framework / Versions / 3.4 / lib / python3.4 / site-packages / psycopg2 / _psycopg.so预计位于/Library/Frameworks/Python.framework/Versions/3.4/lib中的/usr/lib/libpq.5.dylib /python3.4/site-packages/psycopg2/_psycopg.so 你可以帮我吗?

什么是Unix命令来创build一个硬链接到OS X中的目录?

如何在OS X中创build一个指向目录的硬链接(而不是符号链接或Mac OS别名)? 我已经知道命令“目标目标”,但只有当目标是文件时才起作用。 我知道Mac OS与其他Unix环境不同,它允许硬链接到文件夹(例如Time Machine),但是我不知道如何自己做。