This scripts automates process of configuring and installing most popular plugins for newly-created rails project.
This scripts automates process of configuring and installing most popular plugins for newly-created rails project.
I’ve found great tutorial on how to install PHP under MacOS with iconv, mysql and pdo support:
http://www.malisphoto.com/tips/php-on-os-x.html
but…
it’s almost sure, that you will occur errors while linking ivonv and/or openssl libs. To make it work add following lines to ./configure command:
--with-openssl=shared,/opt/local \
--with-iconv=shared,/opt/local \
Now it will compile, but without iconv. To make iconv work, you have to compile php once again from scratch. To do o, go to your PHP source directory (probably /usr/local/src/php-xxx) and type in console:
make clean
then
./configure --prefix=/usr/local --mandir=/usr/share/man --infodir=/usr/share/info --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql-sock=/var/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --with-openssl=shared,/opt/local --with-xmlrpc --with-xsl=/usr --without-pear --with-libxml-dir=/usr --with-iconv=/opt/local --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --with-gd --with-jpeg-dir=/opt/local --with-png-dir=/opt/local --with-freetype-dir=/opt/local
make
After successfull make do install:
sudo make install
Well, congratz, now you have compiled and installed newest PHP. But wait, there is no lib for apache. So once again call configure, but now with parameter --with-apxr2 and then make and install.
./configure --prefix=/usr/local --mandir=/usr/share/man --infodir=/usr/share/info --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --with-mysql-sock=/var/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mysql=/usr/local/mysql --with-openssl=shared,/opt/local --with-xmlrpc --with-xsl=/usr --without-pear --with-libxml-dir=/usr --with-iconv=/opt/local --with-pdo-mysql=/usr/local/mysql/bin/mysql_config --with-gd --with-jpeg-dir=/opt/local --with-png-dir=/opt/local --with-freetype-dir=/opt/local --with-apxs2
make
sudo make install
This is kinda hacky, but I assure, that works quite nice.
Really great stuff!
While trying to install Pylons on clean Mac, I’ve occured strange error while installing dependent simplejson:
Running simplejson-2.0.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-BR5g1H/simplejson-2.0.6/egg-dist-tmp-rLqYAm
No eggs found in /tmp/easy_install-BR5g1H/simplejson-2.0.6/egg-dist-tmp-rLqYAm (setup script problem?)
error: Could not find required distribution simplejson>=2.0.4
Well, even after building it localy from source and sucessfull installing, easy_install tried to fetch it one more time. Sollution for this is… very easy. Just update your setuptools install
sudo easy_install setuptools