macports

How to do a clean reinstall with macports?

落花浮王杯 提交于 2019-12-03 08:34:06
How can one do a complete clean reinstall of a port and at the same time a complete clean reinstall of all its dependenceis? Marc From the MacPorts wiki (migration): https://trac.macports.org/wiki/Migration After having saved a list of installed ports using: port -qv installed > myports.txt and having removed them with: sudo port -f uninstall installed Download and execute the restore_ports script. (If you installed MacPorts from source and used a custom prefix, then you'll need to use the -p option when you run restore_ports.tcl ; see ./restore_ports.tcl -h .) curl -O https://svn.macports.org

Pip using system python osx

こ雲淡風輕ζ 提交于 2019-12-03 07:46:28
问题 I installed python26 using macports, so the correct python on my system is /opt/local/bin/python However, when I do sudo pip install <packagename> It gives me sudo pip install <somepackage> Exception: Traceback (most recent call last): File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/basecommand.py", line 126, in main self.run(options, args) File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/commands/install.py", line 215, in run import setuptools ImportError: No

List of installed MacPorts without dependencies

回眸只為那壹抹淺笑 提交于 2019-12-03 07:14:45
问题 When I do port installed , I get useless list of hundreds of items. However, only a handful of these are ports I actually installed first-hand. The rest are dependencies that I have no need to relate directly to. Is there a way to list only the ports I actually installed, ie. those I typed in on the command line manually? Like a top level node list or installation history file or something? 回答1: MacPorts has the concept of requested and unrequested ports. Try port installed requested . See

installed libtool but libtoolize not found

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: im trying to build libxml2 from source on my mac. so i have autoconf libtool and automake installed using mac ports autoconf and automake seem to be working fine as expected. i try running autogen.sh first. libtoolize --version unfortunately gives -bash: libtoolize: command not found i try running (again) sudo port install libtool ---> Cleaning libtool ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. i try locate libtool and it seems to be installed fine /Applications/Xcode.app/Contents/Developer/Platforms

Unable to get MacPort functionality after installing Xcode 4.3

痴心易碎 提交于 2019-12-03 00:20:21
问题 I am having trouble getting MacPorts to function properly. I just installed OSX Lion 10.7.3 I downloaded and installed MacPorts first, and then after reading the requirements, I downloaded Xcode4.3 from the App Store, and then installed it. I launched Xcode and it looks to be operational and functional. However when I attempted to port with MacPorts, it gave me this error message(excerpt): Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most

List of installed MacPorts without dependencies

家住魔仙堡 提交于 2019-12-02 22:00:19
When I do port installed , I get useless list of hundreds of items. However, only a handful of these are ports I actually installed first-hand. The rest are dependencies that I have no need to relate directly to. Is there a way to list only the ports I actually installed, ie. those I typed in on the command line manually? Like a top level node list or installation history file or something? Clemens Lang MacPorts has the concept of requested and unrequested ports. Try port installed requested . See man 1 port for more information on 'requestedness' and pseudo-targets. To get a list of literally

Pip using system python osx

爷,独闯天下 提交于 2019-12-02 21:13:29
I installed python26 using macports, so the correct python on my system is /opt/local/bin/python However, when I do sudo pip install <packagename> It gives me sudo pip install <somepackage> Exception: Traceback (most recent call last): File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/basecommand.py", line 126, in main self.run(options, args) File "/Library/Python/2.6/site-packages/pip-1.0.1-py2.6.egg/pip/commands/install.py", line 215, in run import setuptools ImportError: No module named setuptools Storing complete log in /Users/navin/.pip/pip.log And so, I suspect that it is

port selfupdate: “macPorts sources: command execution failed”

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 16:04:18
I am trying to selfupdate my Macports, but I am getting the following message: Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed I checked my /opt/local/bin/macports and the directory does not exist. Instead, it is in /opt/local/var . Could that be the issue? Running with -dt , I get the following: [Users/user] > selfupdate DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base ---> Updating MacPorts base sources using rsync rsync: failed to connect to rsync.macports.org: Connection

python installation can't find psycopg2 ImportError

自作多情 提交于 2019-12-02 07:13:45
问题 I'm calling on psycopg2 with import psycopg2 I get the std error ImportError: No module named psycopg2 I installed my copy with macports, so I'm curious why it wouldn't work because all of the dependencies should be downloaded as well. I don't have any experience with Postgresql, nor this module, so I don't know what could be going wrong. Fact is, another project I'm trying to get built calls upon it, so if I could avoid using this I would. :) I'm sure that postgresql is installed, but that