macports

How does Mac OSX determine which dylib to load?

℡╲_俬逩灬. 提交于 2019-12-22 09:13:18
问题 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

g++: No Such Instruction with AVX

白昼怎懂夜的黑 提交于 2019-12-22 07:07:17
问题 When I compiled a program I was writing in C++ (for the latest Macbook pro, which of course supports the AVX instruction set), I got the following errors. I am using the latest release of g++ obtained from Macports. Do you have any ideas as to what I can do to fix the error without restricting the instruction sets available to the compiler? Is there any package in particular that I should try to update? g++-mp-4.7 -std=c++11 -Wall -Ofast -march=native -fno-rtti src/raw_to_json.cpp -o bin/raw

Pasting text into IRB is incredibly slow. Readline issue?

ぃ、小莉子 提交于 2019-12-22 02:01:01
问题 When I paste the following text into IRB or PRY running under ruby-enterprise-2011.03, it takes 13 seconds. # Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pasting isn't slow when running irb with other ruby installations on the same computer. jruby-1.5.6 jruby-1.6.3 ruby-1.8.6-p420 ruby-1.8.7-p352 ruby-1.9.1-p431 ruby-1.9.2-p290 ruby-1.9.3-preview1 or Mac OS X's default system install of 1.8.7-p249 This question

Dynamic library problems with Python and libstdc++

二次信任 提交于 2019-12-21 21:50:31
问题 Executive summary: a Python module is linked against a different version of libstdc++.dylib than the Python executable. The result is that calls to iostream from the module crash. Backstory I'm creating a Python module using SWIG on an older computer (running 10.5.8). For various reasons, I am using GCC 4.5 (installed via MacPorts) to do this, using Python 2.7 (installed via MacPorts, compiled using the system-default GCC 4.0.1). Observed Behavior To make a long story short: calling str(

Setup MySQL 5.6 with Macports

僤鯓⒐⒋嵵緔 提交于 2019-12-21 10:59:08
问题 MacOS 10.10, up-to-date macports. I want to get mysql 5.6 on port 3306. 1) Installing port install mysql56-server mysql56 installs mysql56@5.6.22_0, after that which mysql or which mysql56 returns nothing. So first question is where is mysql client? 2) Configuring Installation script suggests to do sudo -u _mysql /opt/local/lib/mysql56/bin/mysql_install_db then /opt/local/lib/mysql56/bin/mysqladmin -u root password 'new-password' which asks for running server and I start it by cd /opt/local ;

ImageMagick works in command line but when exec() in php it returns 5 with “incompatible library version”

巧了我就是萌 提交于 2019-12-21 09:31:58
问题 I'm having a bizarre problem with php 5.3.6 and ImageMagick (command line) using MAMP (and Macports too..I tried both) on OS X. When I run the identify command from the CLI, it works fine. But when I run the exact same command using exec() , it returns a value code of 5 and in the apache error logs I have: dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib Referenced from: /opt/local/bin/identify Reason: Incompatible library version: identify requires version 14.0.0 or later, but

MacPorts doesn't install org.macports.mysql5.plist with mysql5 +server

守給你的承諾、 提交于 2019-12-21 07:16:14
问题 The last two times I've used MacPorts to install mysql5 +server , the plist isn't installed that allows me to have MySQL start on launch. I can't remember what, if anything, I did the on the last install and I can't seem to find a way to get it installed. Am I missing something? How can I either get the plist file (the only way I know of to start MySQL automatically) or start MySQL automatically in another way? Thanks. UPDATE: I still haven't found an answer anywhere, but I installed the

Pyaudio, portaudio and mac 10.7.5

冷暖自知 提交于 2019-12-21 05:45:13
问题 I'm having trouble installing pyaudio correctly. I have a virtualenv set up for the project. I first tried to install portaudio: sudo port install portaudio which returns: ---> Cleaning portaudio ---> Scanning binaries for linking errors: 100.0% ---> No broken files found. I assume that means it ran fine. Then I tried: pip install pyaudio Which returns: Downloading/unpacking pyaudio Running setup.py egg_info for package pyaudio warning: no files found matching '*.c' under directory 'test'

py2app error: in find_needed_modules TypeError: 'NoneType' object has no attribute '__getitem__'

二次信任 提交于 2019-12-21 05:38:07
问题 I have some troubles with py2app; for some reason I have always the same error for all scripts that I developed. At the moment I am using last MacPorts version and after two days of testing I cannot figure out what is wrong. One of the setup.py file for py2app is: from setuptools import setup APP = ['main.py'] OPTIONS = {'argv_emulation': True, 'includes': ['sip', 'PyQt4._qt', 'PyQt4.QtCore', 'PyQt4.QtGui'], 'excludes': ['PyQt4.QtDesigner', 'PyQt4.QtNetwork', 'PyQt4.QtOpenGL', 'PyQt4.QtScript

Macports select default Python interpreter for executing scripts? [closed]

喜你入骨 提交于 2019-12-21 04:13:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I used python_select , it seems like it does not change the default python for executing scripts, for instance django-admin.py runserver (without python in front). How do i change this? 回答1: There is /usr/bin/python , which is usually earlier in the path (has a higher precedence) than MacPort's binary folder (