Opened 2 years ago

Closed 15 months ago

#1068 closed defect (fixed)

installation error on MacOSX 10.6.6

Reported by: r100 Owned by: kenyon
Priority: high Milestone: Munin 1.4.7
Component: plugins Version: devel
Severity: normal Keywords:
Cc:

Description

I'm following the installation as described here: http://munin-monitoring.org/wiki/DarwinInstallation

After "svn checkout" I ran the "make install-node" command from the /usr/src/munin/ folder. And I got these results:

sh-3.2# make install-node
cd node && /opt/local/bin/perl Build install			\
            --install_path lib=/opt/local/lib/perl5/site_perl/5.8.9		\
            --install_path bin=/opt/munin/bin		\
            --install_path script=/opt/munin/bin		\
            --install_path sbin=/opt/munin/sbin		\
            --install_path bindoc=/opt/munin/man/man1	\
            --install_path libdoc=/opt/munin/man/man3	\

Building Munin::Node

It seems fine to here, then I ran "make install-node-plugins", it finishes with the following:

cd plugins/javalib && javac -g -source 1.5 -target 1.5 /org/munin/plugin/jmx/AbstractAnnotationGraphsProvider.java
javac: file not found: /org/munin/plugin/jmx/AbstractAnnotationGraphsProvider.java
Usage: javac <options> <source files>
use -help for a list of possible options
make: *** [plugins/javalib//org/munin/plugin/jmx/AbstractAnnotationGraphsProvider.class] Error 2

I noticed that the "javac" is trying to access the root folder "/org" and not the "./org" folder.

Then, I went into the "Makefile" and saw the line:

.java.class:
        cd plugins/javalib && $(JC) $(JFLAGS) $(subst plugins/javalib/,,$*.java)

And changed it to:

.java.class:
        cd plugins/javalib && $(JC) $(JFLAGS) $(subst plugins/javalib//,,$*.java)

And ran the "make install-node-plugins" again. All the plugins seems to be compiling now with the "javac" and the folder is now "org/"

But my problem now is when the processes finishes, it has the following error:

...
Installing build/plugins/node.d.darwin/if_
Installing build/plugins/node.d.darwin/if_err_
Installing build/plugins/node.d.darwin/load
mv /opt/munin/lib/plugins/*.adv /opt/munin/lib
mv: rename /opt/munin/lib/plugins/*.adv to /opt/munin/lib/*.adv: No such file or directory
make: [install-plugins-prime] Error 1 (ignored)
./install-sh -m 0644 build/plugins/plugins.history /opt/munin/lib/plugins/
./install-sh -m 0644 build/plugins/plugin.sh /opt/munin/lib/plugins/
rm plugins/javalib//org/munin/plugin/jmx/ClassesLoadedTotal.class plugins/javalib//org/munin/plugin/jmx/BasicMBeanConnection.class plugins/javalib//org/munin/plugin/jmx/MemoryEdenPeak.class plugins/javalib//org/munin/plugin/jmx/ClassesUnloaded.class plugins/javalib//org/munin/plugin/jmx/MultigraphMisc.class plugins/javalib//org/munin/plugin/jmx/MemoryPoolUsageProvider.class plugins/javalib//org/munin/plugin/jmx/CurrentThreadCpuTime.class plugins/javalib//org/munin/plugin/jmx/GarbageCollectionInfo.class plugins/javalib//org/munin/plugin/jmx/MemoryAllocatedTotal.class plugins/javalib//org/munin/plugin/jmx/CompilationTimeTotal.class plugins/javalib//org/munin/plugin/jmx/Uptime.class plugins/javalib//org/munin/plugin/jmx/GCTime.class plugins/javalib//org/munin/plugin/jmx/MemorySurvivorUsage.class plugins/javalib//org/munin/plugin/jmx/MemoryTenuredGenPeak.class plugins/javalib//org/munin/plugin/jmx/CurrentThreadUserTime.class plugins/javalib//org/munin/plugin/jmx/ThreadsPeak.class plugins/javalib//org/munin/plugin/jmx/MultigraphAll.class plugins/javalib//org/munin/plugin/jmx/MemoryAllocatedHeap.class plugins/javalib//org/munin/plugin/jmx/MultigraphThreads.class plugins/javalib//org/munin/plugin/jmx/ClassesLoaded.class plugins/javalib//org/munin/plugin/jmx/MemoryTenuredGenUsage.class plugins/javalib//org/munin/plugin/jmx/ThreadsDaemon.class plugins/javalib//org/munin/plugin/jmx/MemoryEdenUsage.class plugins/javalib//org/munin/plugin/jmx/AbstractMemoryUsageProvider.class plugins/javalib//org/munin/plugin/jmx/MemorythresholdUsageCount.class plugins/javalib//org/munin/plugin/jmx/Beans.class plugins/javalib//org/munin/plugin/jmx/MemoryEdenUsagePostGC.class plugins/javalib//org/munin/plugin/jmx/AbstractGraphsProvider.class plugins/javalib//org/munin/plugin/jmx/Config.class plugins/javalib//org/munin/plugin/jmx/MemoryPermGenPeak.class plugins/javalib//org/munin/plugin/jmx/GetMemoryPoolThresholdCount.class plugins/javalib//org/munin/plugin/jmx/ThreadsStartedTotal.class plugins/javalib//org/munin/plugin/jmx/LegacyPool.class plugins/javalib//org/munin/plugin/jmx/MemoryTenuredGenUsagePostGC.class plugins/javalib//org/munin/plugin/jmx/MemoryObjectsPending.class plugins/javalib//org/munin/plugin/jmx/MemoryPermGenUsage.class plugins/javalib//org/munin/plugin/jmx/MultigraphMemory.class plugins/javalib//org/munin/plugin/jmx/ProcessorsAvailable.class plugins/javalib//org/munin/plugin/jmx/MemoryAllocatedNonHeap.class plugins/javalib//org/munin/plugin/jmx/AbstractMultiGraphsProvider.class plugins/javalib//org/munin/plugin/jmx/MemorySurvivorPeak.class plugins/javalib//org/munin/plugin/jmx/GCCount.class plugins/javalib//org/munin/plugin/jmx/MemorythresholdPostGCCount.class plugins/javalib//org/munin/plugin/jmx/MemoryPermGenUsagePostGC.class plugins/javalib//org/munin/plugin/jmx/Threads.class plugins/javalib//org/munin/plugin/jmx/AbstractMemoryPoolProvider.class plugins/javalib//org/munin/plugin/jmx/AbstractAnnotationGraphsProvider.class plugins/javalib//org/munin/plugin/jmx/GetUsageThresholdCount.class plugins/javalib//org/munin/plugin/jmx/MemorySurvivorUsagePostGC.class

There are no files with ".adv" inside "plugins/"

Can anyone direct me and let me know if this is a bug or just something I'm doing wrong, also, I feel as I shouldn't have to modify the Makefile, but that was something that worked while testing.

Thank you!

Renan.

Change History (4)

comment:1 Changed 2 years ago by ewx

The find call in CLASSFILES is producing two slashes in its output because it's invoked with a stray trailing "/". I used the following change to work around:

$ svn diff Makefile
Index: Makefile
===================================================================
--- Makefile	(revision 4198)
+++ Makefile	(working copy)
@@ -18,7 +18,7 @@
 DIR              := $(shell /bin/pwd | sed 's/^.*\///')
 INFILES          := $(shell find . -name '*.in' | sed 's/\.\/\(.*\)\.in$$/build\/\1/')
 INFILES_MASTER   := $(shell find master -name '*.in' | sed 's/\(.*\)\.in$$/build\/\1/')
-CLASSFILES       := $(shell find plugins/javalib/ -name '*.java' | sed 's/\(.*\)\.java$$/build\/\1.class/')
+CLASSFILES       := $(shell find plugins/javalib -name '*.java' | sed 's/\(.*\)\.java$$/build\/\1.class/')
 PLUGINS		 := $(wildcard plugins/node.d.$(OSTYPE)/* plugins/node.d/*)
 MANCENTER        := "Munin Documentation"
 MAN8		 := master/_bin/munin-update master/_bin/munin-limits master/_bin/munin-html

comment:2 Changed 16 months ago by kenyon

I removed the extra slash reported by ewx in r4665. Will have to do some testing regarding the other issues in this report.

comment:3 Changed 15 months ago by kenyon

  • Owner changed from nobody to kenyon
  • Status changed from new to assigned

comment:4 Changed 15 months ago by kenyon

  • Resolution set to fixed
  • Status changed from assigned to closed

Looking at this again, it looks like the change in r4665 is the correct fix.

The *.adv error is not a problem. Notice how it says "(ignored)". There will only be *.adv files on HP-UX systems. So, your installation should have gone OK. I recommend using MacPorts rather than installing from source though.

Note: See TracTickets for help on using tickets.