rpm for connect?

29 views
Skip to first unread message

John Scales

unread,
Feb 6, 2012, 5:50:21 PM2/6/12
to Nonolith Labs CEE
So far I've had no luck getting anything to install on a 64-bit Fedora
16 machine. An rpm might be very helpful.

thanks.
John

Kevin Mehall

unread,
Feb 6, 2012, 6:32:21 PM2/6/12
to nonoli...@googlegroups.com
Hi John,

We don't have packages for Fedora or 64-bit yet. Went for .deb for the initial release because I'm familiar with Debian packaging and because of the popularity of Ubuntu. But we'll get RPMs at some point, especially if someone experienced with that wants to help.

You can, however, build Nonolith Connect from source and install manually. It's all in github at: https://github.com/nonolith/connect

You'll need to install the development packages for libboost (boost_system, boost_date_time, boost_regex, and boost_thread), and libudev, and will need g++, scons, and git to build it.

git clone --recursive g...@github.com:nonolith/connect.git
cd connect
scons -j5

This will build the nonolith-connect service. 

Put http://pastie.org/pastes/3330821/text in /etc/udev/rules.d/60-nonolith-connect.rules to set the permissions on the USB device. Change the group name to your own if you want to keep it simple and run the server as your own user instead of creating a `nonolithd` user to run it like the Debian package does. Restart udev for it to pick up the new file. 

Then run ./nonolith-connect to manually start the service. The debian package installs nonolith-connect to /usr/bin and adds a script to init.d to launch the service at boot, which you could adapt to Fedora if you wanted to do a complete installation, but running it from the command line when you want to use it will also work.

Hopefully that helps,

-- Kevin

John Scales

unread,
Feb 6, 2012, 10:59:39 PM2/6/12
to nonoli...@googlegroups.com
git clone --recursive g...@github.com:nonolith/connect.git
Cloning into 'connect'...
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I downloaded the zip file manually (from https://github.com/nonolith/connect) but the resulting libusb directory is empty.  so this stops the compile.  so I downloaded libusb manually (from https://github.com/nonolith/libusb)  and stuck it in the empty directory, but this doesn't work either.  But I think I have all the other dependencies installed via yum.

finally although the readme in libusb says there is a configure file, actually there is just a configure.ac.  I gather I do something with this using m4 to produce an actual configure file?

thanks.  once I get this figured out, I'll work with my (excellent) sysadmin) to produce an rpm for you.

John Scales
Department of Physics
Colorado School of Mines
Golden, Colorado

Kevin Mehall

unread,
Feb 6, 2012, 11:18:32 PM2/6/12
to nonoli...@googlegroups.com
Oops, I pasted a URL that requires authentication. Try this one instead: 

git clone --recursive https://github.com/nonolith/connect.git

libusb and websocketpp are included as git submodules (the --recursive option tells git to load submodules), so that's why the directory is empty when you only have a checkout of the toplevel repository.

You don't need to use the autotools setup in libusb/. The scons SConstruct in the toplevel connect directory will build libusb with the appropriate options automatically.

Hopefully that helps. Send the build log if it's still broken. I can try building in a Fedora VM tomorrow to see if there are any additional yum dependencies required.

-- Kevin

John Scales

unread,
Mar 17, 2012, 12:18:05 AM3/17/12
to nonoli...@googlegroups.com
still no joy in mudville.  I can't get anything to compile on fedora 16.  so it's a very attractive paperweight.  I've spent several days on this and at some point you just have to cut your losses and write it off.  it's too bad an OS project has so little interest linux.  We have 20 machines in my lab, but not one is running windows.


John Scales
Department of Physics
Colorado School of Mines
Golden, Colorado



Kevin Mehall

unread,
Mar 17, 2012, 2:19:53 PM3/17/12
to nonoli...@googlegroups.com
Hi John, I’ve built Nonolith Connect on Fedora using these commands: sudo yum install boost libudev boost-thread boost-regex git scons gcc-c++ boost-devel libudev-devel asio-devel git clone --recursive https://github.com/nonolith/connect.git cd connect scons -j5 sudo ./nonolith-connect If you get any errors, please paste the exact message from the terminal. I run Linux as a primary OS, so I assure you that our interest in Linux is not lacking. I'm using Debian though, and because of the popularity of Ubuntu we've focused on that side of the Linux spectrum. I'll put these Fedora instructions on our wiki, and we'll hopefully put an RPM package together at some point. -- Kevin Mehall Nonolith Labs

John Scales

unread,
Mar 17, 2012, 8:20:30 PM3/17/12
to nonoli...@googlegroups.com
Kevin, sorry for the frustrated tone.  I had everything but the asio-devel.  But that seems to be the key.

thanks.
Reply all
Reply to author
Forward
0 new messages