Sparklines rake test failure

This was my only issue in my initial install and I’ve spent a large
chunk of the day on it. I have reinstalled ImageMagick and individual
libraries and the sparklines gem and upgraded all gems on the server.
I have done the gem install typo. This is an update run over a 2.6
install (which might be the issue)

rake Test comes back with this error in the second half:

start

142 tests, 468 assertions, 0 failures, 0 errors
/usr/local/bin/ruby18 -Ilib:test “/usr/local/lib/ruby/gems/1.8/gems/
rake-0.7.1/lib/rake/rake_test_loader.rb” “test/functional/
accounts_controller_test.rb” “test/functional/xml_controller_test.rb”
“test/functional/redirect_controller_test.rb” “test/functional/
theme_controller_test.rb” “test/functional/
articles_controller_test.rb” “test/functional/
backend_controller_test.rb” “test/functional/
textfilter_controller_test.rb” “test/functional/admin/
categories_controller_test.rb” “test/functional/admin/
general_controller_test.rb” “test/functional/admin/
pages_controller_test.rb” “test/functional/admin/
article_preview_test.rb” “test/functional/admin/
users_controller_test.rb” “test/functional/admin/
blacklist_controller_test.rb” “test/functional/admin/
comments_controller_test.rb” “test/functional/admin/
themes_controller_test.rb” “test/functional/admin/
trackbacks_controller_test.rb” “test/functional/admin/
content_controller_test.rb” “test/functional/admin/
resources_controller_test.rb” “test/functional/admin/
feedback_controller_test.rb” “test/functional/admin/
textfilters_controller_test.rb”
feedvalidator: not found
Loaded suite /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/
rake_test_loader
Started


…FE…
Finished in 63.300528 seconds.

  1. Failure:
    test_sparkline(TextfilterControllerTest) [./test/functional/
    textfilter_controller_test.rb:138]:
    is not true.

  2. Error:
    test_sparkline_plot(TextfilterControllerTest):
    ArgumentError: unknown format: PNG
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/
    sparklines/lib/sparklines.rb:375:in format=' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/ sparklines/lib/sparklines.rb:375:insmooth’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/
    sparklines/lib/sparklines.rb:136:in plot' /usr/home/kojiplog/plog.meticulous.com/config/../components/ plugins/textfilters/sparkline_controller.rb:70:inplot’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/base.rb:910:in
    perform_action_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:368:inperform_action_without_benchmark’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/benchmarking.rb:69:in
    perform_action_without_rescue' /usr/local/lib/ruby/1.8/benchmark.rb:293:inmeasure’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/benchmarking.rb:69:in
    perform_action_without_rescue' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/rescue.rb:82:inperform_action’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/base.rb:381:in
    process_without_filters' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/filters.rb:377:inprocess_without_session_management_support’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/session_management.rb:117:in
    process_without_test' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:16:inprocess’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/components.rb:71:in
    process_with_components' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:137:incomponent_response’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/components.rb:101:in render_component' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:169:incomponent_logging_with_unfiltered_options’
    /usr/home/kojiplog/plog.meticulous.com/config/…/lib/rails_patch/
    components.rb:10:in component_logging' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/components.rb:100:inrender_component’
    /usr/home/kojiplog/plog.meticulous.com/config/…/app/controllers/
    textfilter_controller.rb:9:in public_action' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:910:inperform_action_without_filters’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/filters.rb:368:in
    perform_action_without_benchmark' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
    /usr/local/lib/ruby/1.8/benchmark.rb:293:in measure' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/benchmarking.rb:69:inperform_action_without_rescue’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/rescue.rb:82:in perform_action' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/base.rb:381:inprocess_without_filters’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/filters.rb:377:in
    process_without_session_management_support' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/session_management.rb:117:inprocess_without_test’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/test_process.rb:16:in process' /usr/home/kojiplog/plog.meticulous.com/config/../vendor/rails/ actionpack/lib/action_controller/test_process.rb:363:inprocess’
    /usr/home/kojiplog/plog.meticulous.com/config/…/vendor/rails/
    actionpack/lib/action_controller/test_process.rb:336:in get' ./test/functional/textfilter_controller_test.rb:164:intest_sparkline_plot’

206 tests, 802 assertions, 1 failures, 1 errors
rake aborted!
Test failures

(See full trace by running task with --trace)

end

Says it can’t find libpng basically from what I understand. But my
imagemagick config says it’s there:

start

ImageMagick is configured as follows. Please verify that this
configuration
matches your expectations.

Host system type : i386-unknown-freebsd5.4

               Option                        Value

Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=yes yes
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16

Delegate Configuration:
BZLIB --with-bzlib=yes yes
DPS --with-dps=yes no (failed tests)
FlashPIX --with-fpx=no no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
Magick++ --with-magick-plus-plus=yes yes
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes yes
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes yes
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes yes
X11 --with-x= yes
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes

X11 Configuration:
X_CFLAGS = -I/usr/X11R6/include
X_PRE_LIBS = -lSM -lICE
X_LIBS = -L/usr/X11R6/lib
X_EXTRA_LIBS =

Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.2.8
CC = gcc
CFLAGS = -g -O2 -Wall -D_THREAD_SAFE -pthread
CPPFLAGS = -I/usr/local/include
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/lib -
Wl,–rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib
LIBS = -lMagick -ltiff -lfreetype -ljpeg -L/usr/X11R6/lib -
lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lc_r -lm -lc_r
CXX = g++
CXXFLAGS = -D_THREAD_SAFE -pthread

end

Thoughts?

John A.
[email protected]

Meticulous | www.meticulous.com (work)
Rotoscope | www.rotoscope.com (sound: rock band)
Boboroshi & Kynz | www.boboroshiandkynz.com (sound: electronic)
Personal Weblog | www.boboroshi.com (play)

“Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.”
- Benjamin Franklin (1706-1790)
Reply of the Pennsylvania Assembly to the
Governor
November 11, 1755

You’ll need to install libpng and then rebuild imagemagick.

Scott

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs