|
Hello,
I pulled MHVTL from github and I am having problems with make install. Running Debian 6.0.3 2.6.32-5-amd64 #1 SM make -C etc install USR=vtl make[1]: Entering directory `/home/me/Downloads/mhvtl-1.1/etc' install -d -m 755 /etc install -d -m 755 /etc/init.d install -m 700 mhvtl /etc/init.d/ test ! -x /sbin/insserv || /sbin/insserv mhvtl insserv: Service syslog has to be enabled to start service mhvtl insserv: exiting now! make[1]: *** [install] Error 1 make[1]: Leaving directory `/home/me/Downloads/mhvtl-1.1/etc' make: *** [install] Error 2 I have rsyslog running on my system and I want to know if there is a way to get this to install with rsyslog running on the system instead of installing syslog. Thanks Will |
|
As luck would have it, I've got a Debian Wheezy (64bit) config.
I didn't look too hard at the 'make' error (it normally does on a Debian/Ubuntu type host). I target the clean build for SLES / RedHat rather than Debian. Did the daemons start if you run "/etc/init.d/mhvtl start" ? Or did you not try that due to the build error msg.. I'll re-produce this (hopefully today) and provide a better answer. p.s. Anybody with some good Makefile-fu who has suggestions for fixing the Makefile for Debian/Ubuntu, I'm open for patches :) Cheers Mark |
|
the pasted log is from me trying to run a make install on a debian 64bit machine
|
|
not ideal but under
/mhctl/etc/Makefile RCFILE = mhvtl USR ?= vtl MHVTL_CONFIG_PATH ?= /etc/mhvtl CONFIG_PATH = $(shell echo $(MHVTL_CONFIG_PATH) | sed -e s'/\//\\\//g') $(RCFILE): $(RCFILE).in sed -e s'/@USR@/$(USR)/' $< > $@.1 sed -e s'/@CONF_PATH@/$(CONFIG_PATH)/' $@.1 > $@ rm -f $@.1 .PHONY: rcfile rcfile: $(RCFILE) .PHONY: distclean distclean: rm -f $(RCFILE) .PHONY: clean clean: rm -f $(RCFILE) .PHONY: install install: install -d -m 755 /etc install -d -m 755 /etc/init.d install -m 700 $(RCFILE) /etc/init.d/ #commeted out this line####################################### # test ! -x /sbin/insserv || /sbin/insserv $(RCFILE) ######################################################### |
Bu tthan the 'insserv' won't install the 'mhvtl' rc script correctly.. Currently thinking along the lines of (which doesn't work at the moment) : $(RCFILE): $(RCFILE).in sed -e s'/@USR@/$(USR)/' $< > $@.1 sed -e s'/@CONF_PATH@/$(CONFIG_PATH)/' $@.1 > $@ SYSLOG=`test ! -x /usr/bin/dpkg || dpkg --get-selections | awk '/syslog/ {print $1}'` sed -i s'/syslog/$(SYSLOG)/' $@ rm -f $@.1 i.e. If the system has a 'dpkg' command (Debian / Ubuntu etc), then query the version of syslog installed and modify the rc script and replace the # Required-Start: syslog with the installed version of syslog... (rsyslog in current version of Debian).. |
|
Ok so I put the line back in, where do I need to drop in the code for the rsyslog?
I just read a thread about storage location, is that function working? I am interested in have the /opt/mhvlt/10 and 20 thing working so I can mount separate file systems.
Thanks Will
On Thu, Dec 8, 2011 at 5:51 PM, Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]> wrote: Bu tthan the 'insserv' won't install the 'mhvtl' rc script correctly.. |
|
Any chance of testing this patch please..
0001-Fix-make-install-on-Debian-Ubuntu.patch If no objections, I'll commit once I have a couple of acks/naks. Cheers Mark |
|
when I get home, I will fire it up on my system, its a different one but its still debian based, I will update before hand. I got the vtl working on Oracle 5.6 x86_64 going to test it monday,
On Thu, Dec 8, 2011 at 8:13 PM, Mark Harvey [via MHVTL - Linux Virtual Tape Library - Community Forums] <[hidden email]> wrote: Any chance of testing this patch please.. |
|
In reply to this post by Mark Harvey
Yup going to have to wait, trying to download kernel source at the Airport isn't happening
On Thu, Dec 8, 2011 at 8:25 PM, Will W. <[hidden email]> wrote: when I get home, I will fire it up on my system, its a different one but its still debian based, I will update before hand. I got the vtl working on Oracle 5.6 x86_64 going to test it monday, |
|
In reply to this post by Mark Harvey
Dev VM is setup what do you want me to do with the patch?
|
|
This patch should fix the 'make install' error on Debian (or Ubuntu) environments.
If you can apply and test it works for you.. e.g. cd mhvtl-1.1 patch -p1 < /some/where/the/patch/lives/0001-Fix-make-install-on-Debian-Ubuntu.patch make distclean make make install And confirm the 'make install' works without error.. (It does for me - tested on Debian Wheeze & Ubuntu) Many thanks Mark |
|
In reply to this post by Mark Harvey
Worked, it installed
path /home/will.w/Download/ $ mkdir mhvtl $ git init $ git pull https://github.com/markh794/mhvtl.git $cd mhvtlhad a personal moment. $sudo su - #apt-get install build-essential linux-headers-$(uname -r)
installed vmware tools #apt-get install lsscsi sg3-utils #groupadd vtl #useradd --system -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
#cd /home/will.w/Download/mhvtl #make distclean #make #make install it installed #service mhvtl start vtllibrary process PID is 22957 vtllibrary process PID is 22960
# score, going to install the web-gui later when I get home. |
|
Many thanks for testing..
|
| Powered by Nabble | See how NAML generates this page |
