Commits

Gregory Petukhov committed 9e29a75

Improve

Comments (0)

Files changed (1)

 # apache-utils --> ab
 # libxml2-dev libxslt1-dev --> build lxml from source
 # libcurl4-openssl-dev --> build pycurl from source
-# libjpeg62-dev libfreetype6-dev --> build PIL from source
-# Ubuntu PIL hacks:
-# ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/
-# ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
-# ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/
+# libjpeg8-dev libfreetype6-dev --> build PIL from source
 # postgresql-server-dev-8.4 --> build psycopg from source
 # libmysqld-dev --> build mysql driver from source
 aptitude install \
     gcc \
     libcurl4-openssl-dev \
     memcached libmemcached-dev \
-    libjpeg62-dev libfreetype6-dev \
+    libjpeg-dev libfreetype6-dev \
     postgresql python-psycopg2 \
     postgresql-server-dev-8.4 \
     libmysqld-dev \
     bind9-host
 
+# TODO:
+# Find architecture name and version of installed dev libs
+# and make correct symbolic links
+#
+# Debian 7 warkaround:
+# ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
+# ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
+# ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
+#
+# Ubuntu PIL hacks:
+# ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/
+# ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
+# ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib/
+
 if [ "$INSTALL_MONGO" == "YES" ]; then
     aptitude install mongodb-10gen
 fi
 # Настраиваем авто-запуск демонов, запускаем их
 update-rc.d uwsgi defaults
 update-rc.d nginx defaults
+update-rc.d postgresql defaults
 /etc/init.d/nginx start
 /etc/init.d/uwsgi start