macports

How to add MySQL support for PHP using MacPorts?

核能气质少年 提交于 2019-12-25 04:35:10
问题 I installed php 5.3 through MacPorts and now i tried to connect to a database (MySQL) but always when i'm trying to call mysql_connect(); im getting an error: Call to undefined function mysql_connect() My setup is: Leopard 10.5.7 Installed and active packages via Macports that may be related to this problem: php5 @5.3.0_2+apache2+macosx+pear php5-mysql @5.3.0_0+mysql5 mysql5 @5.0.85_0 I know that this error appears when php is compiled without mysql support but the package php5-mysql should

在Mac OS Finder中打开此处的终端[关闭]

前提是你 提交于 2019-12-24 22:24:06
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 是否有类似于Mac OS的Windows Powertoy的“此处打开命令窗口”? 我通过Google搜索找到了几个插件,但想看看最适合那里的开发人员的插件。 #1楼 好的,我意识到这有点晚了……也许在撰写本文时尚无此选择? 无论如何,我发现通过Fink安装pos软件包(在这种情况下是先决条件,对于使用MacPorts的用户来说可能有些类似的东西?)是最简单的解决方案。 您得到两个命令: posd-给出最前面的Finder窗口的当前目录(您可能为其设置别名cdf = cd posd) fdc-将最前面的Finder窗口的当前目录切换到Terminal pwd。 这与'open'略有不同。 它总是打开一个新的查找器窗口。 是的,在编写cdf之前必须切换到“终端”窗口,但是与在Finder工具栏上单击一个按钮相比,我认为这是很便宜的。 而且它也可以与iTerm一起使用,您不必下载单独的Finder工具栏按钮即可打开iTerm窗口。 这与PCheese提出的方法相同,但是您不必使.bash_profile混乱。 #2楼 OSX 10.6上的AppleScript中有一个错误。 (打开2个终端窗口)。 我通过在激活后添加close命令来解决此问题。 关闭第一个“终端”窗口。 on run tell

Using MacPorts to install modules via a certain path

戏子无情 提交于 2019-12-24 12:18:21
问题 I realize this is a very newbie question, but previous threads haven't been encouraging (see details below). I've been using anaconda for most of my work via the IPython Notebook, python 2.7 However, there is a module which I could only properly download with MacPorts. Hence the current problem: when I try to use the Python command line in Terminal or use IPython notebooks, I will enter import py-module and I get Traceback (most recent call last): File "<stdin>", line 1, in <module>

For real, too many installations of Python on OSX Mountain Lion

吃可爱长大的小学妹 提交于 2019-12-23 19:49:54
问题 I have three different Python 2.7s at: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 I use a number of packages that come from different sources. I am currently installing packages from port (MacPorts), easy_install , pip (installed by easy_install ), and Mercurial. There are also some that I have to install from image or build from

pyqt installation problem in mac osx snow leopard

霸气de小男生 提交于 2019-12-23 17:36:15
问题 I'm following a tutorial of making desktop apps. with python and qt4, I downloaded and installed qt creator ide, created the .ui file and then I had to convert it using pyuic4, I've been trying a lot of things and still can't do it. I thought that pyuic4 would be installed with Qt creator IDE, but it seems that's not the case, so I installed pyqt through macports: sudo port install py26-pyqt4 I didn't know but that came with qt, so it was about 3 hours building it. after installing it I tried

Macports installing binutils

試著忘記壹切 提交于 2019-12-23 17:24:18
问题 I'm trying to install gnu ld, via macports, on Lion. I have already installed gcc 4.6 from macports. However I need to create elf binary form a binary file, which I posted as seperate question here I installed binutils from macports, it seems as though everything went fine, however I did get the following message at the end: Warning: binutils installs files outside the common directory structure. ---> Installing binutils @2.21_0 ---> Activating binutils @2.21_0 Having binutils installed will

Macports and Rubygems issues on Snow Leopard

元气小坏坏 提交于 2019-12-23 04:52:52
问题 I've installed Snow Leopard over Leopard with macports and rubygems already installed. This was regular install, not a clean "archive and erase" install. It turned out, that SL has 64bit versions of shared libraries and many development utilities do not work. For example, "port" command complains on incompatible tcl library, or ruby cannot load 32bit bundles. What is the easiest way to solve these issues? 回答1: I was googling for the answer for about 4 days already and finally came up with a

Python “Segmentation fault: 11” when running “import cv” or “import cv2”

泄露秘密 提交于 2019-12-22 13:58:14
问题 I have installed numpy and opencv using macports as per these instructions, but when I try import cv or import cv2 I just get the segfault and I have no idea why. Any suggestions? $ python Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv Segmentation fault: 11 $ python Python 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0

Load MacPorts SQLite3 when using RSQLite library

南笙酒味 提交于 2019-12-22 13:09:12
问题 I have a user defined function in SQLite (an aggregator that calculates the product) and it works fine outside R. But I'm on a Mac some of the time, which requires the MacPorts version of SQLite3 if you'd like to add your own functions/extensions. Can I pick which SQLite3 that RSQLite loads? I don't see anything in the SQLite documentation. Also, MacPorts appears to change my sqlite3 link to the MacPorts installed SQLite3: mbp:~ richard$ which sqlite3 /opt/local/bin/sqlite3 But if I want to

How do i ignore/unmark certain ports?

*爱你&永不变心* 提交于 2019-12-22 11:35:26
问题 I would like to know how to either ignore upgrading certain ports or unmark them as "outdated". This is motivated by certain ports failing to upgrade, while I wish to upgrade all the rest. I know about sudo port install -n , which allows one to install a port without upgrading port dependencies, as in the case of mongodb requiring an older (not the current) version of the boost libraries, but this is not applicable here. For example: $ sudo port list outdated gdb @7.5 devel/gdb py27-scikits