grobian / carbon-c-relay

Enhanced C implementation of Carbon relay, aggregator and rewriter
Apache License 2.0
380 stars 107 forks source link

Question: Installation instructions for v3.3 #328

Closed JosephFY closed 6 years ago

JosephFY commented 6 years ago

Hello Is there a documentation for installation for version 3.3 ? I looked online and couldn't find any. I a upgrading from version 2,6 installed via yum before.

My box running Redhat 7.4 Thank you

grobian commented 6 years ago

You mean installation from source, when yum doesn't have an updated package yet? You will need a compiler and development packages installed in order to be able to run ./configure and make.

JosephFY commented 6 years ago

@grobian Yea from source. I know there is no yum package anymore. would you be list list a high level instructions steps of installations, and a list of requirement if there is any.

I am wondering why there isn't any rpm package that does the whole installation in place, it would be a really good PR or at least an automated installation script. I may work on an installation script after I get the instructions.

Appreciate the help on this.

grobian commented 6 years ago

Ok, the instructions should be pretty straight-forward, something like https://docs-old.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/Packagers_Guide/sect-Packagers_Guide-Creating_a_Basic_Spec_File.html

The idea is that you unpack the sources, run ./configure (it will tell you if it needs something, then you can add requirements from there) followed by make. Finally you run make install to get everything installed, but this will most likely require root access, and you better do this from an RPM or something that keeps track of the installed files.

JosephFY commented 6 years ago

So as a start I tried to install the this package via rpm https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/source/tree/Packages/c/carbon-c-relay-3.3-1.fc29.src.rpm

rpm only does extract these into a folder called rpmbuild into my home directory with 'SOURCE' and 'SPECS' in it. I am not trying to do any modification to the code as of now, I just need to install the daemon. Is the correct way other than to manually put the files under their correspondent locations (/etc, /etc/init.d .....) for each carbon-c-relay file or there is a better way to do so ?

don't have the much of experience of linux rpm installation. any help is really appreciated.

grobian commented 6 years ago

EPEL seems to have 3.2 available right now, I guess you could grab an rpm off of fedora too, that saves you the hassle of building etc.

JosephFY commented 6 years ago

I dont think so, it still showing this version only ! [root@localhost tmp]# sudo yum --disablerepo="*" --enablerepo="epel" list available | grep 'carbon' carbon-c-relay.x86_64 2.6-1.el7 epel

JosephFY commented 6 years ago

@grobian Is there anyway we can get the mot recent version into EPEL ? it will really help people like me who are more interested in using and exploring the product. It is really a hassle to build as you said specially with all he requirements for rpmbuild.

JosephFY commented 6 years ago

So I was looking under the ordinary packages location where yum is pointed https://archive.fedoraproject.org/pub/epel/7/x86_64/Packages/c/

I should look under the testing packages location under https://archive.fedoraproject.org/pub/epel/testing/7/x86_64/Packages/c/

I got it installed now.

So my last question before closing this thread is that should I consider the rpm under the testing an official one ready for prod and any plans for v3.3 rpm to be published on either locations?

grobian commented 6 years ago

As far as I understand, 3.3 has been created (you posted its link earlier), and now is in the progress of getting promoted up. This takes a while, as normal distro stabilisation procedures take place.

piotr1212 commented 6 years ago

spec files can be gotten from the Fedora git repositories here: https://src.fedoraproject.org/rpms/carbon-c-relay/tree/master

If you install the src rpm you can build it with: $ rpmbuild -ba ~/rpmbuild/SPECS/package.spec But better is to build the package with mock which handles all dependencies and builds in an clean environment $ mock --rebuild package.src.rpm

The EL (from RHEL) stands for Enterprise Linux. Enterprises want "stable" software, the word stable in this context means: "does not change a lot". Therefore update policy for RHEL and EPEL is very conservative and should only include bugfixes - no new features. For this reason I only update carbon-c-relay (in EPEL) if I am really sure it does not break anything. As I am not using c-relay myself any more I have to wait for other volunteer testers (or users) to give upvotes, thus far update to 3.2 received 0 feedback: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2017-126740aaf2 Also, last time I spoke to the booking guys they indicated that they were still running 2.7 If you want to run the latest and greatest software I would suggest you get familiar with building and compiling software or switch to a more bleeding edge distro like Fedora, Ubuntu (or Gentoo).

piotr1212 commented 6 years ago

and to use testing repo add "--enablerepo='epel-testing'" to your yum commands

grobian commented 6 years ago

Maybe @reyjrar uses a more recent version and wants to share his experiences.

reyjrar commented 6 years ago

I package and built my own RPMs for carbon-c-relay that includes customized init scripts for multi-instance servers. I've never had any problem building the RPM with mock as suggested by @piotr1212. I haven't performed the upgrade to 3.3 yet. It's on my list, but 2.8 is still checking all the boxes and getting me where I need to be. I'll package up the 3.3 release probably in the next two weeks and can post a branch with my init scripts and specfile with a README for building if it helps.