macports

new Date(“YYYY-MM-DD”) stopped working in Qt WebKit after removing MacPorts

独自空忆成欢 提交于 2019-12-07 06:36:34
问题 On my OS X 10.7.3 (Lion) laptop, I cannot parse JavaScript date strings with Qt WebKit using the Date constructor. Using either jasmine-headless-webkit or phantomJS, all calls like: new Date("2012-04-10") always return "Invalid Date" instead of a valid Date object. A few weeks back, everything was working fine, and I've checked this on half a dozen computers with a similar setup and cannot reproduce the problem anywhere else. I am fairly certain the problems started when I decided to clear

Replacing xcode with macports software

匆匆过客 提交于 2019-12-06 16:18:01
问题 I have been trying to replace everything in xcode with stuff I can get from macports. So far, I installed xcode, then macports, then used macports to install gcc, gcc_select, gmake, elf-bintools, bintools, arm-bintools (just to be sure I replaced all the bintools), and then uninstalled all of xcode. I then linked /usr/bin/make with /opt/local/bin/gmake and used gcc_select to select gcc44--the one from macports. I also exported all the bintool executable paths into the .profile path. I was

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

亡梦爱人 提交于 2019-12-06 13:38:17
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 (clang-600.0.39)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

How to resolve this PostgreSQL error on OS 10.6 (Snow Leopard)

旧城冷巷雨未停 提交于 2019-12-06 11:32:18
I followed the instructions for setting up postgresql from this site All seems to go fine until I try: createuser --superuser myname -U postgres I get the following exception: createuser: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? For the life of me I can't figure out how to resolve this. Any ideas??? I had to remove the existing postgres user before doing the install. Perhaps you moved your postgres data directory after you installed postgres

Force setup.py to use my custom compiler

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 03:04:24
问题 I'm trying to get setup.py to compile c++ code with the macports version of gcc. The problem is the code I am trying to build, doesn't support mac's default clang, which is the default gcc on newer osx versions. I created a custom setup.cfg file setup.cfg [build_ext] compiler=gcc-mp-4.8 However when I run python setup.py build_ext I get the following error running build_ext error: don't know how to compile C/C++ code on platform 'posix' with 'gcc-mp-4.8' compiler How can I get setup.py to use

How do i install additional packages for Xcode on OSX Lion to allow MacPorts to work

﹥>﹥吖頭↗ 提交于 2019-12-06 00:59:49
问题 When I try and install MacPorts it complains 'Xcode is not installed, or was installed with UNIX Development (10.5+) or Command Line Support (10.4) deselected.' I do have Xcode installed from the Appstore so I guess I just have to install these extra parts but how ? Ive read a couple of questions on Stack Overflow about this but I think the answers must be outdated as they do notmake sense for me, I do not have an Xcode dmg I can reinstall from, and I can't see anything useful in /Developer

MacPorts Apache2 Stopped Launching on Boot

二次信任 提交于 2019-12-06 00:05:24
问题 Something that I've noticed recently on two different machines is that Apache2 installed via MacPorts seems to have stopped launching when I boot up. The honest truth is that I can't swear it did so before, but it's something I think I'd notice because installing the LaunchDaemon is part of my install process. In fact, if I try to reload the LaunchDaemon, it fails: $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist org.macports.apache2: Already loaded Unless I start

PythonXY on Mac?

女生的网名这么多〃 提交于 2019-12-05 18:51:56
How do you install PythonXY on Mac OSX Lion? I got started. It should be able through macports but anyhow I cannot find the port pythonXY as described on the mac ports website. I don't know pretty much about MAC neither pythonXY but there is a post written (Jule 23th, 2009) on the pythonxy wiki: a MacOS version is not scheduled - not because it won't be needed or useful, but because there is nobody out there to take care of a pythonxy-Mac project. Source Good luck, 来源: https://stackoverflow.com/questions/12833780/pythonxy-on-mac

How does Mac OSX determine which dylib to load?

烂漫一生 提交于 2019-12-05 16:19:30
I'm trying to run Apache in Mac OSX Yosemite using MacPorts' PHP (mod_php53.so). Note that I'm not using MacPorts' Apache but Yosemite's Apache with MacPorts' PHP. This was working fine with OSX Mavericks and Mountain Lion in the past. I get this error when running /usr/sbin/apachectl -t in Yosemite: httpd: Syntax error on line 228 of /private/etc/apache2/httpd.conf: Cannot load /opt/local/apache2/modules/mod_php53.so into server: dlopen(/opt/local/apache2/modules/mod_php53.so, 10): Library not loaded: /opt/local/lib/libaprutil-1.0.dylib\n Referenced from: /opt/local/apache2/modules/mod_php53

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

久未见 提交于 2019-12-05 15:57:23
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/lib/liblwgeom.so": version mismatch DETAIL: Server is version 8.4, library is version 8.3. That file