macports

Downloading MacPorts dependencies without installing

左心房为你撑大大i 提交于 2019-11-29 18:53:00
问题 The default MacPorts installation downloads each dependency, builds and installs it, then downloads, builds and installs the next dependency, and so on. This means that a constant network connection is required throughout the installation. In my configuration, a constant network connection is not feasible. This means that installation of a large-dependency package can take a very long time. How do I download all dependencies for a specified MacPorts package at the beginning (while connected

Can't update Macports (with Mac OS X Mavericks)

你说的曾经没有我的故事 提交于 2019-11-29 18:45:27
After upgrading Mac OS X to newest version Mavericks, I attempted to selfupdate my Macports, but it failed: $ sudo port -v selfupdate ---> Updating MacPorts base sources using rsync receiving file list ... done sent 36 bytes received 69 bytes 210.00 bytes/sec total size is 4925440 speedup is 46908.95 receiving file list ... done sent 36 bytes received 76 bytes 74.67 bytes/sec total size is 512 speedup is 4.57 MacPorts base version 2.2.0 installed, MacPorts base version 2.2.1 downloaded. ---> Updating the ports tree Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs

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

我们两清 提交于 2019-11-29 18:36:05
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? noun MacPorts is the way to go. Like @user475443 pointed, MacPorts has many many more packages. With brew you'll find yourself trapped soon because the formula you need doesn't exist. MacPorts is a native application: C + TCL. You don't need Ruby at all. To install Ruby on Mac OS X you might need MacPorts, so just go with MacPorts and you'll be happy. MacPorts is really

Remove preinstalled python from Mac OSX 10.8

孤街醉人 提交于 2019-11-29 18:12:49
问题 I want to move to python 3.0 and therefore remove the default python 2.7 (2.6,2.5...) installation on my mac. Including all the installed packages, $PATH,... Does the python installer from python.org oder MacPorts installer provide an uninstaller, or is there a way to do this manually? 回答1: That's a COMPLETELY TERRIBLE idea, and you should never do that. You're likely to break dependencies and requirements for various software that expect to find the default Python in the default location.

GDB error message (GCC 4.7) (from macports)

半世苍凉 提交于 2019-11-29 17:55:12
I have this kind of message when I start gdb : $ gdb a.out GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Thu Nov 3 21:59:02 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries . warning: Could not find object file "/opt/local/var

How do I install the hstore module on PostgreSQL 9.0 (MacPorts install)?

◇◆丶佛笑我妖孽 提交于 2019-11-29 17:53:13
问题 I have a lovely PostgreSQL 9.0 server installed on my laptop via MacPorts. I would like to enable the hstore module, but I can't find any instructions for installing these optional modules (nor can I find any hstore-related code in /opt/local/share/postgresql90/contrib/ ). I have found some hstore-related SQL here, but I'm not sure where it comes from or if it's compatible w/ PostgreSQL 9.0. So, how do I enable the hstore module on my MacPorts-installed Postgres 9.0 server? 回答1: You can tell

Homebrew包管理器

大憨熊 提交于 2019-11-29 17:14:59
Homebrew 包管理器 [toc] 一、简介 Homebrew 是Mac OS X下的一款软件包管理器, 相当于Linux下的yum、apt-get. 通过 Homebrew 可以方便的下载、安装应用, 不再需要亲自动手去搜索各种安装包. 注意: Homebrew 与Mac OS X中的 MacPorts 包管理器不兼容, 如果已经安装 MacPorts , 需先将其卸载. 二、安装 安装Xcode命令行工具 Homebrew 包管理器依赖Xcode的命令行工具 Command Line Tools (CLT) for Xcode , 可以通过两种方式来获取: 只安装Xcode命令行工具, 在终端执行如下命令: xcode-select --install 直接在AppStore中安装整个Xcode(如果有用Xcode做开发的话) 安装 Homebrew 直接在终端中执行如下命令执行安装即可 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/[Homebrew](https://brew.sh)/install/master/install)" 安装结束后查看 Homebrew 版本信息 brew --version 三、替换Homebrew安装源 这里替换为清华大学开源软件镜像站的安装源,

Macports on OSX 10.9 - compile with -stdlib=libstdc++

心已入冬 提交于 2019-11-29 06:58:52
In OSX 10.9 the default -stdlib option for clang++ is libc++ , so that's what Macport uses when building packages. Is there any way to tell Macports to use libstdc++ instead? In particular I would like to build OpenCV through Macports so it's using libstdc++ , but I imagine I'll run into a need to do so for other packages as well The option is simply: -stdlib=libstdc++ If you need finer control over the build process for various ports, you can always set variables like: CXX = "clang -std=c++11 -stdlib=libc++ , CXXFLAGS = "-Wall -O2 -march=core2" , etc. And build <port> from source: sudo port

std::thread in MacPorts gcc4.5

痴心易碎 提交于 2019-11-29 06:30:15
I'm trying to compile some software I've been writing in Linux that uses some fancy new C++0x features on my Mac. I used MacPorts to install the gcc45 package, which gave me /opt/local/bin/g++-mp-4.5, however this compiler doesn't want to compile anything in <thread> . Eg I try to compile: //test.cpp #include <thread> int main() { std::thread x; return 0; } and get: bash-3.2$ /opt/local/bin/g++-mp-4.5 -std=c++0x test.cpp test.cpp: In function 'int main()': test.cpp:5:2: error: 'thread' is not a member of 'std' test.cpp:5:14: error: expected ';' before 'x' A quick look in /opt/local/include

CMake GUI on Mac

我与影子孤独终老i 提交于 2019-11-29 06:07:52
问题 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? 回答1: you need to install the gui variant: sudo port install cmake +gui you may need to run sudo port uninstall cmake first. 回答2: Try installing the cmake GUI using brew cask brew cask install cmake how to install brew cask Install Homebrew first How to install