debian install fails

38 views
Skip to first unread message

guthrie

unread,
Jul 24, 2010, 3:48:49 PM7/24/10
to reportmagic-users
I installed from debian (apt-get install rmagic), and it seemed to
install fine, but won't run:

alpha:/etc/rmagic# rmagic
Failed to open standard.ini: No such file or directory at /usr/bin/
rmagic line 191
Can't call method "Sections" on an undefined value at /usr/share/
rmagic/wadg/rm/Settings.pm line 1124.

It is also not obvious to me how to use it - run rmagic, and it
generates ..?? and this is web available via ??

Thanks for any help - this must be obvious, but ....

Jeremy Wadsack

unread,
Jul 26, 2010, 1:17:03 PM7/26/10
to reportma...@googlegroups.com
In general Report Magic looks for a file 'rmagic.ini' in the same directory as the application (e.g. /usr/bin/ in the messages below). I'm not sure why it's looking for "standard.ini", but this is a reported bug for package version 2.21-3: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=328751

You might double check that you have 2.21-4 release (the latest). I don't see this mentioned in the bug list but it may have been fixed. Otherwise, double check your /etc/rmagic/rmagic.ini file and remove any reference to standard.ini.

Report Magic reads the output from Analog (which does the web server log file analysis) and produces HTML files for the reports. Generally you would get Analog up and running and configured the way you want, then change it to COMPUTER format for its output, set up Report Magic to lead that file (through the rmagic.ini settings) and probably write the reports to a directory that is hosted on your web server. You can read documentation online at http://reportmagic.org/docs/. It should also have been installed in /usr/share/doc/rmagic/ by your debian package if you want to read it locally. 


--
Jeremy Wadsack

Gregory Guthrie

unread,
Jul 26, 2010, 11:14:55 PM7/26/10
to reportma...@googlegroups.com

Thanks for the information and help.

I do have latest release.

 

The bug report you reference says:

   “Creating the file at /etc/rmagic/ makes the error go away.”
 
But is it’s not clear to me how to create it (with any useful content?).
I just created an empty file in /etc/rmagic/standard.ini,
And indeed that error goes away, but I still then get:
   # rmagic
    Can't call method "Sections" on an undefined value at /usr/share/rmagic/wadg/rm/Settings.pm line 1124.
 
Seems that it is trying to get some (additional?) settings from a parameter file, but I haven’t given any parameters.

 

-------------------------------------------
Gregory Guthrie
-------------------------------------------

Jeremy Wadsack

unread,
Jul 27, 2010, 12:17:45 AM7/27/10
to reportma...@googlegroups.com
I'm guessing from that message that you can't actually have an empty ini file. Try editing the file with the following line:

[statistics]

I think that should work and get rid of that error message.

--
Jeremy Wadsack

Gregory Guthrie

unread,
Jul 27, 2010, 12:29:09 AM7/27/10
to reportma...@googlegroups.com

Thanks, yes, I found another post from you saying to just delete the “Include = standard.ini” instead of providing an empty one, and yes that got rid of that error!

 

I seem to be inching through various errors! Now I get:

   c# rmagic

   Report Magic 2.21

   Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved.

   rmagic: WARNING: The setting "[graphs] Reverse_Time" is not recognized. It will be ignored.

   gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully

   Can't call method "can" on an undefined value at /usr/share/rmagic/wadg/rm/Settings.pm line 918.

 

The code there is:

            unless( $g->can( $self->val( 'graphs', 'Format' ) ) ) {    

 

/etc/rmagic.ini does have the line:

   Format = png

 

And no reports generated.

Any hints?!  J

Jeremy Wadsack

unread,
Jul 27, 2010, 12:32:20 AM7/27/10
to reportma...@googlegroups.com
Ok, that last error is a result of a change to GD library. It's documented here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445842

Here's the patch:

Index: rmagic-2.21/wadg/rm/Settings.pm
===================================================================
--- rmagic-2.21.orig/wadg/rm/Settings.pm	2007-10-06 12:54:34.000000000 +0200
+++ rmagic-2.21/wadg/rm/Settings.pm	2007-10-06 12:56:08.000000000 +0200
@@ -907,7 +907,7 @@
 	# Check GD for support of desired output format. If none
 	# given or not capable, then set output format accordingly.
 	#
-	my $g = new GD::Image(0,0);
+	my $g = new GD::Image(1,1);
 
 	if( defined $self->val( 'graphs', 'Format' ) ) {
 		if( $self->val( 'graphs', 'Format' ) =~ /jpe?g/i ) {

--
Jeremy Wadsack

Gregory Guthrie

unread,
Jul 27, 2010, 12:39:23 AM7/27/10
to reportma...@googlegroups.com

Yeah! Thanks.

 

Odd that the Debian package lacks this patch (from 2007!).

Jeremy Wadsack

unread,
Jul 27, 2010, 5:55:12 PM7/27/10
to reportma...@googlegroups.com
Odd that Report Magic itself doesn't include this patch. ;)

--
Jeremy Wadsack
Reply all
Reply to author
Forward
0 new messages