Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPM Build on Centos 6 #249

Open
sbatchu0108 opened this issue May 10, 2017 · 3 comments
Open

RPM Build on Centos 6 #249

sbatchu0108 opened this issue May 10, 2017 · 3 comments
Labels

Comments

@sbatchu0108
Copy link

When i download the statsite tar and untar it and copy the autogen.sh file into the statsite-0.8.0 directory and run the autogen.sh file i see below error

Download Link

https://github.com/statsite/statsite/archive/v0.8.0.tar.gz

Error:
[vagrant@localhost statsite-0.8.0]$ ./autogen.sh autoreconf: Entering directory .'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
aclocal: couldn't open directory m4': No such file or directory autoreconf: aclocal failed with exit status: 1 [vagrant@localhost statsite-0.8.0]$

autogen.sh:
`#!/bin/sh

autoreconf -fiv
rm -Rf autom4te.cache`

I have already installed the dependencies:
[vagrant@localhost statsite-0.8.0]$ rpm -qa autoconf automake libtool autoconf-2.63-5.1.el6.noarch automake-1.11.1-4.el6.noarch libtool-2.2.6-15.5.el6.x86_64 [vagrant@localhost statsite-0.8.0]$

I am trying to build rpm but somehow there is an issue with the tar which i am trying to identify. Please let me know if you need more information.

@johnkeates
Copy link
Contributor

It seems the m4 directory isn't created with your m4 version, try manually creating the 'm4' directory and the build system should be able to pick it up.

@sbatchu0108
Copy link
Author

@johnkeates Thanks, I was able to fix the issue by running the bootstrap.sh script before calling autogen.sh in the rpmbuild SPEC file.

But the init script provided here is more like attached to terminal rather than detaching from the terminal.
https://github.com/statsite/statsite/blob/master/rpm/statsite.initscript

I was trying to fix the script but didn't made any progress, just like regular init.d script when you run them they just status like whether its started or failed but this script actually runs on terminal.

After i start the script i have to manually kill the process to return to terminal.
`root@localhost ~]# /etc/init.d/statsite start
Starting statsite: statsite[21347]: Starting statsite.
statsite[21347]: stdin is disabled
statsite[21347]: Listening on tcp ':::8125'
statsite[21347]: Listening on udp ':::8125'.

ERROR:statsite.graphitestore:Failed to connect!
^C
Session terminated, killing shell...
[root@localhost ~]# `

Can you help in making changes so that its more aligned to standard initd scripts.

@johnkeates
Copy link
Contributor

I'm not familiar enough with RPM (yet) to help you with this, sorry. Maybe someone that worked on that part can help you, or if I find the time, I'll see to it's verification in the 0.8.1 release.

@johnkeates johnkeates added the bug label May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants