macports

macports python_select command not found

偶尔善良 提交于 2019-11-30 10:26:38
问题 I'm using MacPorts and had installed python_select to switch between 2.6 and 2.7. But for some reason I'm now getting a "command not found" error when running: sudo python_select python26 Possibly an issue with $PATH? Not sure where to look for it. 回答1: python_select isn't a command, it is a capability added to port select . To use it: List the available pythons to select from: port select --list python to choose a specific port (eg python26): port select python python26 回答2: See answer to

How do I debug C++0x programs in MacPorts gcc 4.5?

心不动则不痛 提交于 2019-11-30 08:33:43
问题 I have a simple c++ program I am trying to debug, but gdb cannot find the object file for the libraries (or no debug info is available), and it does not seem able to find the debug symbols for my executable either. I am on OSX 10.5.8, with macports, and I compile my code with g++-mp-4.5 -Wall -pedantic -std=c++0x -g -ggdb -I/opt/local/include -L/opt/local/lib -lgsl -static-libstdc++ MCMC-simplex.cpp -o mcmc (there is only one file, and g++-mp-4.5 is the macports executable for gcc/g++ 4.5 )

CMake GUI on Mac

谁都会走 提交于 2019-11-30 06:37:58
I can't find where I can get the GUI tool for CMake on MacOSX . I see references to it online but nothing else. I got CMake using MacPorts but on Windows I am used to using the GUI. Does it exist on Mac and where/how do I get it? you need to install the gui variant: sudo port install cmake +gui you may need to run sudo port uninstall cmake first. Try installing the cmake GUI using brew cask brew cask install cmake how to install brew cask Install Homebrew first How to install homebrew Add the brew cask to using the command brew tap caskroom/cask here it is: http://www.cmake.org/cmake/resources

Unable to update my Bash in Mac by MacPorts

爷,独闯天下 提交于 2019-11-30 06:19:15
问题 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? 回答1: 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

How do I upgrade PHP in Mac OS X?

北城余情 提交于 2019-11-30 06:13:19
问题 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

How do I remove MacPorts on an “unsupported OS” i.e. El Capitan Public beta?

女生的网名这么多〃 提交于 2019-11-30 05:02:17
The MacPorts installation that I had on Yosemite doesn't work on the El Capitan since it isn't supported yet. I want to remove the Port installation here but I'm not able to run any of the Port commands. Does anyone have an idea how to clean it up? On running any port command, I get the following error: Error: Current platform "darwin 15" does not match expected platform "darwin 14" Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration OS platform mismatch while executing "mportinit ui_options global_options global_variations" Error:

Qt5 and MacPorts: missing links

↘锁芯ラ 提交于 2019-11-30 03:37:46
问题 I'm wondering if somebody has also a similar "problem" while installing Qt5 from MacPorts. I've installed a frech MacPorts distribution yesterday (on Yosemite) and installed the ports qt5-mac and qt5-creator-mac . First, I have noticed that (compared with my previous experience) there is no longer a link to Qt Creator in the /Applications/MacPorts folder. In addition, the tools like qmake are no longer in the path (that is, there are no links to files from /opt/local/libexec/qt5-mac/bin in

Macports mysql5 setup under Snow Leopard

爷,独闯天下 提交于 2019-11-29 23:13:19
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 /opt/local/var/run/mysql5/ ? Do I need to configure /opt/local/etc/php5/php.ini? opt/local/var/db/php5

macports python_select command not found

喜夏-厌秋 提交于 2019-11-29 20:27:39
I'm using MacPorts and had installed python_select to switch between 2.6 and 2.7. But for some reason I'm now getting a "command not found" error when running: sudo python_select python26 Possibly an issue with $PATH? Not sure where to look for it. JackFrost python_select isn't a command, it is a capability added to port select . To use it: List the available pythons to select from: port select --list python to choose a specific port (eg python26): port select python python26 wmfox3 See answer to subsequent reframing of question: macports didn't place python_select in /opt/local/bin Eh, on my

do you have kcachegrind like profiling tools for mac [closed]

旧巷老猫 提交于 2019-11-29 19:00:57
Can anybody tell me about the tools you have for profiling like kcachegrind wingrind valgrind for mac platform. I don't think these work on mac, i have also quick check on that. mr-sk I ended up using qcachegrind on OSX. It can be installed via brew brew install qcachegrind or, to enable graphviz support: brew install qcachegrind --with-graphviz What's great about this program is that I successfully loaded a 6.1GB cachegrind file on my MacBook Pro! Pretty slick! GlennR Try the qcachegrind + Graphviz killer combo. It installs quickly via brew, which is nice. Check out these instructions,