Tuesday, December 6, 2011

imagick.so undefined symbol error on PHP 5.3

Background info: Runnind CentOs 5.5 (and 5.7 on another machine) with PHP 5.3.8.

After doing a "pecl install imagick" I was getting the following error, and imagick wasn’t showing up on phpinfo():

php: symbol lookup error: /usr/local/lib/php/extensions/no-debug-non-zts-20090626/imagick.so: undefined symbol: MagickWandGenesis

This thing was bugging me for weeks! But I finally got it working. The brunt of it is that you should use imagick-2.3.0 instead of the 3.x.x version. Here is what I did:

# yum install ImageM* netpbm gd gd-* libjpeg libexif gcc coreutils make
# cd /usr/local/src
# wget http://pecl.php.net/get/imagick-2.3.0.tgz
# tar zxvf ./imagick-2.3.0.tgz
# cd imagick-2.3.0
# phpize
# ./configure
# make
# make test
# make install

Once that’s done just restart apache and you’re good to go!

# service httpd restart

I wonder if anyone else had this issue.

Friday, May 6, 2011

CakePHP URL not found, 404 error message

If you just installed CakePHP, and you get the the “all is good” page, but with no styles(no colors), that means that you don’t have mod_rewrite enabled on your localhost! Solution:

  1. In the httpd.conf file in apache, change the line “AllowOverride None” to “AllowOverride All”.
  2. Also, search for the line in the httpd.conf file with the word “mod_rewrite”, and remove the pound(#) from the start of the line.
  3. After this is done, and the file is saved, restart your localhost(WAMPP, XAMPP, etc), and try again!

Why does this happen? CakePHP uses URL Rewriting to work, and by default, the localhost installations don’t have it enabled.

Simple as that, happy coding :)

Saturday, April 30, 2011

Can't Add Stroke to Photoshop Path - Fix

Just thought I'd drop by to update the blog a bit. Here is a recent error I couldn't find the fix online for, but found out myself.

If you're reading this, you have created a path with the Vector tool in Photoshop, and you aren't able to Stroke or Fill the path with your brush. First off, here is the fix that helped me:

Make sure that when you select the Vector tool, you have "Paths" selected at the top-left choices in Photoshop (see below image).


This was my problem. Now I’ll present some other tips in case this didn’t work:

  • make sure you have a regular layer selected, with Normal style and 100% opacity and fill. This means no Fill, or Path Layers
  • make sure you’ve set your brush correctly. You can use a default brush, which should work right away. If you want to use a more interesting brush, make sure it’s Spacing is enabled, and not too high. (F5 for the Brushes window)

Hope I helped someone with this :)