osx-mountain-lion

How to make Boost dylibs universal (i386 & x86_64) on os x?

只谈情不闲聊 提交于 2020-12-09 04:16:48
问题 I'm trying to compile a Boost library into a universal binary file (i.e. a "fat" file that contains builds for both the i386 and x86_64 architectures). Souring the internet and SO I assembled the following instructions. Download boost (e.g. from http://www.boost.org/users/download/) In the downloaded folder, type ./bootstrap.sh (or, in my case ./bootstrap.sh --with-libraries=thread , since I only need the thread library) type ./b2 install cxxflags="-arch i386 -arch x86" These steps installed

How to setup an SMTP server on Mac OS X?

╄→尐↘猪︶ㄣ 提交于 2020-06-24 12:23:12
问题 I work with PHP and I have mamp on my machine. I would like to send emails within my PHP code: <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> How can I configure a mail server for free on my mac machine ? 回答1: The following did the job. See source here. Edit file: sudo emacs /System/Library/LaunchDaemons/org.postfix.master

How to setup an SMTP server on Mac OS X?

北战南征 提交于 2020-06-24 12:23:06
问题 I work with PHP and I have mamp on my machine. I would like to send emails within my PHP code: <?php $to = "recipient@example.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } ?> How can I configure a mail server for free on my mac machine ? 回答1: The following did the job. See source here. Edit file: sudo emacs /System/Library/LaunchDaemons/org.postfix.master

Error installing Rmagick on Mountain Lion

Deadly 提交于 2020-02-10 21:29:26
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version

Error installing Rmagick on Mountain Lion

╄→尐↘猪︶ㄣ 提交于 2020-02-10 21:29:05
问题 I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version