Sunday, April 27, 2008

คอมไพล์ GD บน Linux

ที่มา http://www.numvarn.com/blog/node/4
เนื่องจากตั้งแต่ติดตั้ง package บน Linux ที่ Tom ลงไว้
ไม่เคย compile ด้วยตัวเองสำเร็จ ต้องพึ่ง RPM หรืออย่างน้อยก็ YUM เสมอๆ

วันนี้ check ว่า Server จริง ก็เป็น RHEL5 ถ้าเกิดต้องลง GD ขึ้นมาจริงๆ ยังไงก็ต้อง Compile เอง
ก็เลยเอาเวบนี้ http://www.numvarn.com/blog/node/4
มาเป็นแนวทาง

jpegsrc.v6b.tar
libpng-1.2.5.tar
Compile PHPใช้เวอร์ชั่น php-5.2.0.tar

# ./configure --prefix=/usr/local/apache2/php \
--with-zlib \
--with-xml \
--enable-cli \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-dbx \
--enable-sockets \
--with-gd \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs
#make
#sudo make install

ทำการติดตั้งเรียบร้อยแล้วให้ทำการแก้ไขค่า Config ของ Apache ให้รู้จักกับ PHP ได้โดยแก้ไขไฟล์ /usr/local/apache2/conf/httpd.confโดยทำการเพิ่มAddDefaultCharset UTF-8 และ
AddType application/x-httpd-php .phpเพิมเติม :
ลิงค์ที่สามารถเข้าไปหาข้อมูลเพิ่มเติมได้อืก
http://www.phpmac.com/

ก็มั่วๆไป พอดี Tom ช่วยเรื่อง php ก็สบายหน่อย ใช้ได้แล้วหละ

33 comments:

  1. buy tramadol online tramadol 50 mg buy online - buy 200 mg tramadol online

    ReplyDelete
  2. xanax pills lorazepam generic xanax - xanax anxiety medication side effects

    ReplyDelete
  3. buy tramadol online tramadol withdrawal rls - tramadol with alcohol high

    ReplyDelete
  4. buy tramadol cash on delivery buy tramadol no prescription 100 mg - tramadol overdose liver failure

    ReplyDelete
  5. generic xanax generic equivalent of xanax - effects of quitting xanax cold turkey

    ReplyDelete
  6. carisoprodol 350 mg carisoprodol 350 mg street price - side effects soma carisoprodol tablets

    ReplyDelete
  7. buy carisoprodol side effects of carisoprodol soma - carisoprodol soma opiate

    ReplyDelete
  8. buy tramadol online 001webs com buy tramadol online - best site buy tramadol

    ReplyDelete
  9. buy tramadol online tramadol zofran interaction - tramadol hcl painkiller

    ReplyDelete
  10. buy tramadol online buy tramadol cheapest - buy tramadol visa

    ReplyDelete
  11. buy cialis online cialis online order - generic cialis 20mg

    ReplyDelete
  12. cialis online cialis daily free - generic cialis online no prescription

    ReplyDelete
  13. alprazolam no prescription buy xanax no prescription from canada - suboxone xanax and alcohol

    ReplyDelete
  14. cialis online buy generic cialis online review - cialis online secure

    ReplyDelete
  15. xanax online xanax drug of abuse - buy xanax online no prescription mastercard

    ReplyDelete
  16. buy cialis online generic cialis mens health - cialis купить в киеве

    ReplyDelete
  17. cialis online can you buy cialis usa over counter - generic cialis 5mg daily

    ReplyDelete
  18. cialis online cialis online vancouver - generic cialis without prescriptions

    ReplyDelete
  19. buy tramadol buy tramadol online safe - tramadol for dogs uti

    ReplyDelete
  20. buy tramadol tramadol dosage and side effects - illegal to buy tramadol online

    ReplyDelete
  21. buy tramadol online does tramadol overdose feel like - 50mg tramadol high dose

    ReplyDelete
  22. http://landvoicelearning.com/#57594 tramadol 50 mg long does stay your system - buy tramadol online no prescription cod

    ReplyDelete
  23. buy tramadol with mastercard how to order tramadol online no prescription - cheap tramadol overnight delivery

    ReplyDelete
  24. learn how to buy tramdadol where can i buy tramadol in the usa - tramadol 50 mg vs 37.5

    ReplyDelete
  25. buy tramadol online tramadol no prescription usa - tramadol withdrawal length

    ReplyDelete
  26. buy ativan online ativan 4 mg sleep - ativan for alcohol hangover

    ReplyDelete
  27. buy lorazepam + ativan withdrawal + exercise - lorazepam 1 mg daily

    ReplyDelete
  28. tramadol cheap get over tramadol withdrawal - tramadol-ct 100mg retardkapseln beipackzettel

    ReplyDelete
  29. tramadol online overnight buy tramadol online - tramadol for dogs half life

    ReplyDelete
  30. http://ranchodelastortugas.com/#50698 xanax used alcohol withdrawal - xanax withdrawal kills

    ReplyDelete
  31. http://staam.org/#56274 4 50 mg tramadol - tramadol 50 mg drug test

    ReplyDelete
  32. http://ranchodelastortugas.com/#61301 xanax does do - xanax no prescription cheap

    ReplyDelete
  33. http://ranchodelastortugas.com/#72895 xanax and alcohol effects on liver - xanax bars yellow time release

    ReplyDelete