osx-mavericks

mysql_install_db, error: 35, on a Mac OS X 10.9.1

纵饮孤独 提交于 2019-12-10 03:58:20
问题 Background: I've just updated OS X to Mavericks, then I removed brew(and everything I installed via homebrew) using: rm -rf /usr/local and began to reinstall everything. After brew install mysql , I tried: unset TMPDIR $ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp But I got: mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp Installing MySQL

configure: error: C compiler cannot create executables with Mavericks

假装没事ソ 提交于 2019-12-10 03:54:30
问题 I've checked stackoverflow but haven't found an answer yet. I'm trying to install wget on Mavericks as shown here. Here's what I'm getting: bolo:wget-1.14 Michelin$ subl config.log bolo:wget-1.14 Michelin$ ./configure --with-ssl=openssl configure: configuring for GNU Wget 1.14 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk.

sudo pecl install apc error on os x lion

元气小坏坏 提交于 2019-12-10 01:14:03
问题 I tried installing APC with pecl on OS X Lion ( sudo pecl install apc ) and it complained about a missing pcre.h file: In file included from /private/tmp/pear/temp/APC/apc.c:44: /usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h' file not found #include "pcre.h" So I used MacPorts to install the pcre package ( sudo port install pcre ) but it still complains. How can I fix this? 回答1: I think this is because MacPorts installs the header files in a different location from where

Linking libusb in Mac OS X

你说的曾经没有我的故事 提交于 2019-12-09 22:49:51
问题 I have this very simple piece of code that I'm trying to compile. I'm fairly new to GCC from the command line, so please forgive me. I've tried a quite few different things with GCC, but I'm still unable to get it to compile. I do have libusb installed. How can I get this piece of code to compile? Libusb: anything:usb mymac$ brew list libusb /usr/local/Cellar/libusb/1.0.9/include/libusb-1.0/libusb.h /usr/local/Cellar/libusb/1.0.9/lib/libusb-1.0.0.dylib /usr/local/Cellar/libusb/1.0.9/lib

XAMPP NOT WORKING! - OS X Yosemite

僤鯓⒐⒋嵵緔 提交于 2019-12-09 19:00:43
问题 I was working with XAMPP 1.8.3-3 on OS X Mavericks. After upgrading to Yosemite Mysql server stopped working. And an upgrade to XAMPP 1.8.3-5 fixed the problem and mysql server starts working. Now the entire database list is showing on phpmyadmin, but no access to the tables. Its showing “#1146 - Table ‘DB_NAME.TABLE_NAME’ doesn’t exist”. Unfortunately I don't have any DB backup! I have the entire XAMPP folder backup. So how I can able to retrieve the mysql tables? 回答1: just type

Install f2py with python3

我的未来我决定 提交于 2019-12-09 17:16:40
问题 I need to call routines from Fortran modules within Python. I did it with f2py and python2.7 . It worked pretty well. Now, I have to use it with python3 but f2py does not seem to be compatible with python3 . I see that some people use a version called f2py3 , but it is neither available through pip , not through macports (I am using a Mac). Also, python3+numpy+f2py seem to be already integrated in Fedora. Does anyone have managed to use f2py3 (or its equivalent) with python3 on a Mac? If not,

Version errors for numpy when importing matplotlib

拜拜、爱过 提交于 2019-12-09 17:16:18
问题 When I import matplotlib I get no errors, but when I import matplotlib.pyplot I get RuntimeError: module compiled against API version 8 but this version of numpy is 7 Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Python/2.7/site-packages/matplotlib/pyplot.py", line 24, in <module> import matplotlib.colorbar File "/Library/Python/2.7/site-packages/matplotlib/colorbar.py", line 27, in <module> import matplotlib.artist as martist File "/Library/Python/2.7

PHP/Apache crashing on script (Segmentation fault (11)

非 Y 不嫁゛ 提交于 2019-12-09 16:04:34
问题 [SOLVED] I'm running a PHP script (with some includes) on localhost that keeps crashing before the end. Error reporting is on. Opera, Safari and Firefox return an empty screen. But Chrome returns: Unable to load the webpage because the server sent no data. Error code: ERR_EMPTY_RESPONSE Apache logs returns: [Sun Dec 15 19:29:23 2013] [notice] child pid 34267 exit signal Segmentation fault (11) Was using PHP 5.5.6 when I encountered the problem for the first time After downgrading to PHP 5.4

Macports on OSX 10.9 - compile opencv with libstdc++

我是研究僧i 提交于 2019-12-08 12:46:37
问题 My situation is very similar to what's discussed in this thread. The reason I want to do this is that I am using OpenCV with CUDA 6.0, but CUDA is currently linked against libstdc++. I followed the answer that suggested putting the flag -stdlib=libstdc++ as well as the other approach where we set CXX and CXXFLAGS but as it was being commented: Macports did not seem to acknowledge the flags and still built with libc++ instead of intended libstdc++. I would like to comment on that thread to ask

RStudio can't find LaTeX after Mavericks update

空扰寡人 提交于 2019-12-08 12:05:47
问题 I have been using Sweave for quite sometime on my system using RStudio. However, I recently upgraded my Mac OS from Lion to Mavericks. This caused several issues: First, RStudio was not able to locate the R library, and it just wont start. I reinstalled RStudio, but still got the same issue. So I reinstalled both R and RStudio, and then RStudio started to work. And now, RStudio is still not able to locate TeX installation, and gives me the following warning: "No TeX installation detected.