macports

port selfupdate: “macPorts sources: command execution failed”

有些话、适合烂在心里 提交于 2019-12-04 07:44:28
问题 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 --->

How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

我的梦境 提交于 2019-12-04 05:35:30
When I try and install MacPorts it complains 'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.' I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ? Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer either, or any preferences within Xcode itself. I only want Xcode for the purposes of using Macports so

MacPorts Apache2 Stopped Launching on Boot

北城余情 提交于 2019-12-04 04:50:23
Something that I've noticed recently on two different machines is that Apache2 installed via MacPorts seems to have stopped launching when I boot up. The honest truth is that I can't swear it did so before, but it's something I think I'd notice because installing the LaunchDaemon is part of my install process. In fact, if I try to reload the LaunchDaemon, it fails: $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist org.macports.apache2: Already loaded Unless I start Apache manually (using sudo apachectl restart ), grep'ing for either "apache2" or "httpd" in my process

Mac OS X: _tkinter.TclError: no display name and no $DISPLAY environment variable

寵の児 提交于 2019-12-04 04:40:46
问题 As I said, I have installed Python 3.3 from Macports. Now when I do a spotlight search for Idle Idle -- Python 3.3 shows up. However when I try to click it, nothing happens. No error is shown or anything- it plain does not start. What do you think might be wrong? It is reminiscent of this question: Python 3.0 - Idle wont open. It just bounces in the dock The difference is that I get no error messages and am using 3.3 Update: Now I tried setting Py3.3 as my main version using macports select.

where is $PATH set? Specifically where is my mac port path being set? [closed]

天涯浪子 提交于 2019-12-04 03:53:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . when i do echo $PATH is see: /opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql84/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/mysql/bin:/usr/X11/bin I want to move the /opt/local stuff to the end of the path because it is causing errors with gitk. (the same error

Prevent MacPorts from installing pre-built package?

烂漫一生 提交于 2019-12-04 01:39:14
I am trying to instal libiconv with MacPorts. I need to build it to run in OS X 10.5 while my Mac is running 10.6. So I added this like to macports.conf : macosx_deployment_target 10.5 That supposedly force MacPorts to build the port with 10.5 SDK. However, the installed libraries still contain LC_DYLD_INFO load command which is available only in 10.6. I reinstalled the port with -v option and find that it downloads and installs a pre-built package without compiling. The package obviously was built on a 10.6 machines. The question is: how can I force MacPorts to built the port on my machine

Macports mysql5 setup under Snow Leopard

人走茶凉 提交于 2019-12-03 18:35:52
问题 I've managed to get my install all screwed up as I'm a newbie and messing up is what I'm good at. 1) Can anyone reference a credible set of setup instructions for this stuff? 2) Can I just uninstall and start from scratch (passwords and all) through macports? I tried and a bunch of mysql directories stuck around after the unistall, WTF!? 3) Where does mysqld.sock need to reside and what file settings do I need to apply to get it playing nice with php5 and apache2 ? Does it live in /tmp or in

Macports select default Python interpreter for executing scripts? [closed]

我的梦境 提交于 2019-12-03 12:02:59
I used python_select , it seems like it does not change the default python for executing scripts, for instance django-admin.py runserver (without python in front). How do i change this? fviktor There is /usr/bin/python , which is usually earlier in the path (has a higher precedence) than MacPort's binary folder ( /opt/local/bin/python ). The python_select script changes only /opt/local/bin/python , so you have to make sure there is no other python binary on your path taking precedence over it. Solution (as root): mv /usr/bin/python /usr/bin/python.orig ln -s /opt/local/bin/python /usr/bin

what is the default location for boost library when installed using macport on mac ?

99封情书 提交于 2019-12-03 11:23:54
问题 I just now installed boost on mac, using macport with following command sudo port install boost It's installed fine, but I have no idea where the boost library got installed to. Where should it be / how could I search for it? 回答1: The headers should be in /usr/local/include/boost and the libs should be in /usr/local/lib. Or in /opt/local/include/boost and /opt/local/lib , I believe. You can search using locate : locate boost 回答2: Default is /usr/local/lib /usr/local/include You might want to

Pear install for macports PHP5

青春壹個敷衍的年華 提交于 2019-12-03 10:04:54
I have PHP5 installed via macports in /opt/local/..the default location for macports. There's no portfile for pear. If I do a standard pear install from the pear site what directory location should pear be placed in to work with PHP? While the curl option works, it won't update as you update your ports. An alternative: sudo port install php5 +pear This will install the variant of php5 with pear, in the same location as downloading above, and it will update as you update macports. I had a similar issue just now, and went for installing PEAR in exactly the directory you mentioned. curl -O http:/