macports

Installed MacPorts PHP, now cannot interface with MySQL - Mac OS X

亡梦爱人 提交于 2020-01-05 12:14:49
问题 I had the standard version of PHP which comes bundled with Mac OS X working perfectly, but I wanted to upgrade to the new version so I used MacPorts, and all went well. I then edited my .conf file and checked and now my version of PHP is updated to the latest version. However, upon running a PHP project I'm working on, it now seems I am unable to interface with MySQL which was working with the standard PHP install which came bundled with Mac OS X (note: I originally installed MySQL from their

Installing Rpy2 on Mac OSX with Anaconda Python 3.4 and R 3.1 installed via Macports

时间秒杀一切 提交于 2020-01-05 12:12:30
问题 pip install rpy2 yields the error: /usr/bin/clang -bundle -undefined dynamic_lookup -L/Users/jeff/anaconda3/lib -arch x86_64 build/temp.macosx-10.5-x86_64-3.4/./rpy/rinterface/_rinterface.o -L/Users/jeff/anaconda3/lib -L/opt/local/Library/Frameworks/R.framework/Resources/lib -lR -lRlapack -licui18n -lRblas -o build/lib.macosx-10.5-x86_64-3.4/rpy2/rinterface/_rinterface.so ld: library not found for -licui18n clang: error: linker command failed with exit code 1 (use -v to see invocation) error:

Macport self update failed

久未见 提交于 2020-01-03 11:57:27
问题 ginnyweasley:~ s66$ sudo port selfupdate Password: ---> Updating MacPorts base sources using rsync Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed I have tried to redownload macports and it still does not seem to work. I have also tried it without sudo and it still does not work. Does anyone have a solution to this problem? thanks. 回答1: I had that problem too. Even, like you, I re-downloaded the distribution and reinstalled.

No liblwgeom when using postgresql84 and postgis on Snow Leopard with MacPorts

試著忘記壹切 提交于 2020-01-02 06:47:53
问题 I'm trying to get my dev environment back up and running after upgrading to Snow Leopard. In particular, I need postgresql and postgis working, but I'm running into the following problem. After installing both with the following: sudo port install postgresql84 postgresql84-server postgis I get errors like the following when I try to load my sql database, which has references to liblwgeom.so ERROR: function public.box3d_in(cstring) does not exist ERROR: incompatible library "/usr/local/pgsql

How to install clang 3.1 using macports? (OSX, snow leopard)

六眼飞鱼酱① 提交于 2020-01-02 05:15:33
问题 I'd like to install the latest clang (3.1) compiler using macports (I use emacs rather than xcode, and the version of clang that comes with xcode is older anyway). macports seems to have the latest versions of gcc, but when I enter "port list clang" the only version that shows up is 2.9. I use the C++11 features, so I want to use the latest version. I'm running snow leopard on an MBP. 回答1: Clang has several different versions available on MacPorts: $ port search clang clang @2.9 (lang) C, C++

gcc 4.7.3 and gdb 7.6 on Mac - strange stepping problems

妖精的绣舞 提交于 2020-01-01 09:42:20
问题 I recently installed GCC 4.7.3 and GDB 7.6 on my OS X 10.7 system via MacPorts to be able to compile C++11 code. I cannot use Apple's selfmade clang++ and gdb since it doesn't allow me to debug standard template library code properly (for example, if I dereference a list iterator, the program crashes). Now, with the new GCC / GDB combination I have some weird problems with stepping into functions. Take this minimal example: #include <stdio.h> class A { public: virtual void testMethod() {

gcc 4.7.3 and gdb 7.6 on Mac - strange stepping problems

陌路散爱 提交于 2020-01-01 09:42:04
问题 I recently installed GCC 4.7.3 and GDB 7.6 on my OS X 10.7 system via MacPorts to be able to compile C++11 code. I cannot use Apple's selfmade clang++ and gdb since it doesn't allow me to debug standard template library code properly (for example, if I dereference a list iterator, the program crashes). Now, with the new GCC / GDB combination I have some weird problems with stepping into functions. Take this minimal example: #include <stdio.h> class A { public: virtual void testMethod() {

使用macports下安装python环境及pil,opencv等库

南楼画角 提交于 2019-12-27 19:23:16
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1、 安装macports 访问官方网站 http://www.macports.org/install.php,这里提供有dmg安装和源码安装两种方式,这里下载相应的mac版本的macports进行安装即可。 点击安装完成后,在终端键入 port -v 如果显示下图内容,则安装成功 同时在终端键入如下命令 cat .bash_profile 也即安装的软件将会自动的配置在环境变量中,如下图 至此,安装成功。 2、常用命令 更新ports tree和MacPorts版本,强烈推荐第一次运行的时候使用-v参数,显示详细的更新过程。 sudo port -v selfupdate 搜索索引中的软件 port search name 安装新软件 sudo port install name 卸载软件 sudo port uninstall name 查看有更新的软件以及版本 port outdated 升级可以更新的软件 sudo port upgrade outdated Eclipse的插件需要subclipse需要JavaHL,下面通过MacPorts来安装 sudo port install subversion-javahlbindings 3、安装python和库 sudo port install

macports 使用技巧: gcc版本切换

女生的网名这么多〃 提交于 2019-12-27 19:02:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> macports 使用技巧: gcc版本切换 目录 [Macport的安装位置] [自我更新] [更新所有过期包] [更新指定包] [检查包的依赖情况] [更新失败时删除临时文件] [抓取某包的源代码] [选择编译使用的 gcc clang llvm等] Macport的安装位置 Macport会把自己和所有的包都安装在 /opt/local/ 目录下,如果你的 macport 出了问题,一时半会儿解决不了,那么终极办法就是把这个目录改名,重新安装一个全新的 macport,如下: '''Air:opt admin$ sudo mv /opt/local ~/macports Password: Air:opt admin$ 自我更新 sudo port -v selfupdate 更新所有过期包 sudo port -v upgrade outdated 更新指定包 sudo port -v install 包名 检查包的依赖情况 sudo port deps 包名 更新失败时删除临时文件 sudo port -v clean 包名 抓取某包的源代码 sudo port mirror 包名 抓取后的源文件tar包放在如下目录中 /opt/local/var/macports/distfiles/包名

Trouble running WeasyPrint after installing El Capitan (OSX 10.11)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 12:42:11
问题 I recently updated my OS on my mac to El Capitan and since then have been running into issues trying to run WeasyPrint. I have updated macports, uninstalled and reinstalled all of the macport dependencies. I've also uninstalled and reinstalled WeasyPrint via pip with no issues, but still it doesn't run. I also have the export DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib" in my ~/.profile which helped solve the import errors and allowed WeasyPrint to run before I had El Capitan installed. When i