in reply to Re^2: Qestion about GD::SecurityImage
in thread Qestion about GD::SecurityImage

Did you install the JPEG library prior to installing as described in the README?

Replies are listed 'Best First'.
Re^4: Qestion about GD::SecurityImage
by sman (Beadle) on Jan 29, 2010 at 19:21 UTC
    Hi, I already installed jpegsrc.v6b.tar.gz like the following but still see the image's alt 'Security Image' only. Is there anywhere else I can check?
    [abc@fedora jpeg-6b]$ sudo make install /usr/bin/install -c cjpeg /usr/local/bin/cjpeg /usr/bin/install -c djpeg /usr/local/bin/djpeg /usr/bin/install -c jpegtran /usr/local/bin/jpegtran /usr/bin/install -c rdjpgcom /usr/local/bin/rdjpgcom /usr/bin/install -c wrjpgcom /usr/local/bin/wrjpgcom /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/man/man1/cjpeg.1 /usr/bin/install -c -m 644 ./djpeg.1 /usr/local/man/man1/djpeg.1 /usr/bin/install -c -m 644 ./jpegtran.1 /usr/local/man/man1/jpegtran.1 /usr/bin/install -c -m 644 ./rdjpgcom.1 /usr/local/man/man1/rdjpgcom.1 /usr/bin/install -c -m 644 ./wrjpgcom.1 /usr/local/man/man1/wrjpgcom.1
Re^4: Qestion about GD::SecurityImage
by sman (Beadle) on Jan 29, 2010 at 19:27 UTC
    I also checked mysql table like this:
    mysql> select * from sessions; +----------------------------------+---------------------------------- +-------------------------------------------------+ | id | a_session + | +----------------------------------+---------------------------------- +-------------------------------------------------+ | e6a5ed9dd1afc80ad115097e97ea7e5c |   e6a5ed9dd1afc80ad115097e97ea7e5c _session_id security_code | | abe1ec864cf636ea147b8982331fc211 |   abe1ec864cf636ea147b8982331fc211 _session_id security_code | | 4a926009da58be40afdad7baef41d9e4 |   4a926009da58be40afdad7baef41d9e4 _session_id security_code | | 7a65f897282e294c9153892395dfe84c |   7a65f897282e294c9153892395dfe84c _session_id security_code | +----------------------------------+---------------------------------- +-------------------------------------------------+ 4 rows in set (0.00 sec)
Re^4: Qestion about GD::SecurityImage
by sman (Beadle) on Jan 29, 2010 at 19:33 UTC
    BTW, I noticed there are totally three items in the OPTIONAL section for Linux INSTALLATION from the README file. Are they all necessary to run demo.pl ? Thanks.
    (OPTIONAL) The FreeType font rendering library for TrueType fonts. The JPEG library, version 6b or later The XPM library,
Re^4: Qestion about GD::SecurityImage
by sman (Beadle) on Jan 29, 2010 at 19:38 UTC
    And perl gdtest.pl > test.jpeg still does not work.

      Rather than just randomly trying things you need to learn to read the documentation. For example, you failed to read the GD documentation informing you about installing libjjpeg. The documentation I think is pretty clear.

      To answer your multiple post, you don't need to install XPM or FreeType (or libjpeg for that matter) to build GD, which is why they are marked at optional. If you don't know what these things are, do some research on them and decide wither you should install them or not.

      My advice to you is:

      • Read the libgd Compile FAQ, download and compile the prerequisites.
      • (Re)Build libgd.
      • Re install the GD perl module, reading and understanding the README before hand.
      • Try some of the tests which ship as part of the distribution.
      • If you have any further problems, compose your thoughts and post a single reply, rather than multiple short replies in quick succession.

      Martin