osx-snow-leopard

Install PECL on Mac OS X 10.6

我们两清 提交于 2020-01-09 12:20:59
问题 Is there any way to install PHP:s PECL handler on Mac OS X 10.6, to be used with the bundled PHP? 回答1: Better late than never, but if you are like me and installed PHP directly from php.net (instead of using something like Homebrew or Port, then you can simply follow the following link to install Pear and PECL: http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/ We need PEAR! For some reason, it's not set up ready to on Lion, but the install phar file is here, so we just need to

Install PECL on Mac OS X 10.6

て烟熏妆下的殇ゞ 提交于 2020-01-09 12:20:27
问题 Is there any way to install PHP:s PECL handler on Mac OS X 10.6, to be used with the bundled PHP? 回答1: Better late than never, but if you are like me and installed PHP directly from php.net (instead of using something like Homebrew or Port, then you can simply follow the following link to install Pear and PECL: http://akrabat.com/php/setting-up-php-mysql-on-os-x-10-7-lion/ We need PEAR! For some reason, it's not set up ready to on Lion, but the install phar file is here, so we just need to

Run Octave from Emacs on iMac

我与影子孤独终老i 提交于 2020-01-06 14:22:57
问题 Octave is installed on my iMac in /applications and works properly. Emacs is installed on my iMac in /applications and file editing is possible. Now I want to run Octave from Emacs. M-x run-octave results in: Searching for program: No such file or directory, octave In Windows I solved this problem by adding Octave to the environment path, how can I do this on a Mac? Thank in advance, Hans Sellmeijer 回答1: Here are two possible solutions: Find the actual Octave executable by typing which octave

Run Octave from Emacs on iMac

元气小坏坏 提交于 2020-01-06 14:21:56
问题 Octave is installed on my iMac in /applications and works properly. Emacs is installed on my iMac in /applications and file editing is possible. Now I want to run Octave from Emacs. M-x run-octave results in: Searching for program: No such file or directory, octave In Windows I solved this problem by adding Octave to the environment path, how can I do this on a Mac? Thank in advance, Hans Sellmeijer 回答1: Here are two possible solutions: Find the actual Octave executable by typing which octave

what does “TERM environment variable not set” mean?

别说谁变了你拦得住时间么 提交于 2020-01-05 09:01:35
问题 I was writing a simple console application in Objective C. I have tried system("clear") but I am getting this message on console " TERM environment variable not set ." Can anyone explain me what this is all about ? I am very new to both OSX and Objective C. and I am sorry if this question is too dumb as I have not programmed much on *nix. (I have been doing a lot of Java and PHP development in my college days). 回答1: The TERM environment variable tells your program what type of terminal its

mac os x terminal problem faced

梦想的初衷 提交于 2020-01-05 08:52:20
问题 oh my god...i faced a big problem...i was created a .bash_profile in ~ folder and then set paths there...bust the big problem is after restarting my bash i see that none of my commands work like LS and RM and etc... now i dont know how to fix it...some one help me...i need my terminal as soon as possible... 回答1: Make sure you are appending to the existing $PATH. PATH=$PATH:/Users/mthalman/bin 回答2: To prevent this happening in the future: When I edit my environment files (including bashrc,

mac os x terminal problem faced

冷暖自知 提交于 2020-01-05 08:52:04
问题 oh my god...i faced a big problem...i was created a .bash_profile in ~ folder and then set paths there...bust the big problem is after restarting my bash i see that none of my commands work like LS and RM and etc... now i dont know how to fix it...some one help me...i need my terminal as soon as possible... 回答1: Make sure you are appending to the existing $PATH. PATH=$PATH:/Users/mthalman/bin 回答2: To prevent this happening in the future: When I edit my environment files (including bashrc,

Problems installing MySQL-python-1.2.3c1 on Mac Snow Leopard

和自甴很熟 提交于 2020-01-05 02:55:08
问题 I am having a problem installing the Python MySQL connector (MySQL-python-1.2.3c1) on my Mac OSX Snow Leopard. System State I have manually compiled an installed: mysql-5.1.41 This seems to work fine, as I can create and query a database from the commandline. I have compiled: MySQL-python-1.2.3c1 I first set the following in the site.cfg file: mysql_config = /usr/local/mysql/bin/mysql_config I then built and compiled MySQL-python-1.2.3c1 following their guide: sudo python setup.py build sudo

MySQLdb problems in django

元气小坏坏 提交于 2020-01-03 02:20:07
问题 I installed mysql-python on 64bit snow leopard,and it's good under python IDE,but failed import in django. Anyone had meet similar question? File "/Library/Python/2.6/site-packages/django/db/backends/mysql/base.py", line 14, in <module> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Users/szanlin/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not

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