macports

How does MacPorts install packages? How can I activate a Ruby installation done via MacPorts?

旧街凉风 提交于 2019-11-29 04:05:55
问题 After trying to install ruby19 on my machine (PPC, Mac OSX 10.5.7) using the following commandline sudo port install ruby19 the version of ruby didn't change ruby -v => ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] I assume that i have two versions of it installed on my mac, but how do i use the latest one now? 回答1: To use a specific ruby version if you have two versions installed you can either specify an absolute path to the one you want. E.g. /your/path/to/ruby Or you can

Locate MacPorts package?

南笙酒味 提交于 2019-11-29 02:10:08
I just installed the py27-numpy package via MacPorts and python will not find the module when I use this command: import scipy I used the help('modules') command and the scipy port did not come up. Clearly the path is not configured correctly or MacPorts is not installing in the correct place, but either way, it would solve my problem to know where this package is being installed. Where can I find the path to MacPorts-installed package, py27-scipy? Output of echo $PATH command: /Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:

How to install Python 2.7 bindings for OpenCV using MacPorts

老子叫甜甜 提交于 2019-11-28 19:43:28
When trying to "import cv" in python I get: "ImportError: No module named cv". This question has appeared in many forms, but I haven't found the answer that helps. On my Mac OS X Lion, among many other ports, I have run: sudo port install python27 and sudo port install opencv +python27 Running: port select python I see: "python27 (active)" And running: port installed opencv I see: "opencv @2.3.1a_1+python27 (active)" What else should I check? Thanks. Pete I had this same problem. It looks like a (maybe?) bug with the OpenCV install script for 2.3.1a. It will not create the Python bindings

Macports Port Select Commands

与世无争的帅哥 提交于 2019-11-28 18:18:55
What are the new commands & or equivalents of: python_select -L (shows available python versions) python_select -s (sets the default version of your choice of python). I know they have changed to --list , --set , --show but there doesn't seem to be an example of how to properly use each one. For example, if I use port select --set I get the following: Error: port select [--list |--set |--show] []. To list: port select --list python To show: port select --show python To select: sudo port select --set python <the python version> 来源: https://stackoverflow.com/questions/6612009/macports-port

Unable to update my Bash in Mac by MacPorts

自闭症网瘾萝莉.ら 提交于 2019-11-28 16:59:43
I updated unsuccessfully my Bash to 3.2.48 by MacPorts. It seems that I do not have it active, since I get echo $BASH_VERSION 3.2.17(1)-release How can you make the newest Bash active such that I get it for my login shell? Run the following code, for instance to change your shell to the newest Bash installed by MacPorts chsh -s /opt/local/bin/bash If that gives you the message, " non-standard shell " you will need to add /opt/local/bin/bash to /etc/shells Note that /etc/shells is just a text file, so you can edit it directly if you authenticate as root. You can programmatically change it by

How do I upgrade PHP in Mac OS X?

纵然是瞬间 提交于 2019-11-28 15:33:34
I feel this is an awfully obtuse question to ask, but strangely, this problem is poorly documented. I would like to upgrade PHP, but there are several problems: There is no built-in package manager. MacPorts doesn't recognize php as an installed package because it didn't install PHP itself. Running locate php indicates there are probably many dependencies. I don't know HOW php was installed, as it was included with the OS, so I don't know whether I should install from source or download binaries. I also don't know the proper way to uninstall the previous version without breaking dependencies.

sudo: port: command not found

别等时光非礼了梦想. 提交于 2019-11-28 15:28:52
问题 I recently uninstalled Xcode 4.2 and re-installed Xcode 4.3.1. Command Line Tools are installed. I then installed MacPort using “dmg” disk images for Lion from macports.org. Since, I was getting sudo: port: command not found after every use of port, I followed this and this post to create a .bash_profile file(wasn't present earlier) and then put in it the following but to no avail. export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt

What is the difference between fastcgi and fpm?

本秂侑毒 提交于 2019-11-28 14:31:26
问题 I am trying to install php with fpm on macports. I read somewhere that fpm means FastCGI process manager. Does that mean fastcgi and fpm are same? If they are same, then why do we have two different macports variants for php namely "php5 +fastcgi" and "php5 +fpm" 回答1: FPM is a process manager to manage the FastCGI SAPI (Server API) in PHP. Basically, it replaces the need for something like SpawnFCGI. It spawns the FastCGI children adaptively (meaning launching more if the current load

What is the difference/usage of homebrew, macports or other package installation tools? [closed]

纵然是瞬间 提交于 2019-11-28 13:13:12
问题 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 5 years ago . I've just recently switched to a Mac from Ubuntu. I was disappointed that mac doesn't have the convenient sudo apt-get in Ubuntu. I've heard that I should use homebrew but I'm not exactly sure what homebrew or macports does? 回答1: MacPorts is the way to go. Like @user475443 pointed, MacPorts has many many more

Python, Macports, and Buffer Problems

此生再无相见时 提交于 2019-11-28 12:16:12
Apologies if this is the wrong place to post this - I'm unclear what the problem is. When using versions of Python built by Macports 2.3.3 running Mac OX 10.10, I'm seeing some really funny behavior. I've fully re-installed Macports, and replicated this on an iMac as well as a Macbook Air, and created a new user to make sure it wasn't something about my environment. This wasn't happening last week, and sometime in the interim something changed pretty drastically. Everything works fine until I invoke Python. $ python Python 3.4.3 (default, Aug 26 2015, 18:29:14) [GCC 4.2.1 Compatible Apple LLVM