I am attempting to install GNURadio using PyBombs on Ubuntu 14.04.
I am following the quickstart steps found at https://github.com/gnuradio/pybombs/
During the build I get the following errors:
Linking CXX executable tags_demo
/usr/local/lib/libuhd.so: undefined reference to `libusb_error_name'
/usr/local/lib/libuhd.so: undefined reference to `libusb_strerror'
collect2: error: ld returned 1 exit status
make[2]: *** [gr-uhd/examples/c++/tags_demo] Error 1
make[1]: *** [gr-uhd/examples/c++/CMakeFiles/tags_demo.dir/all] Error 2
make: *** [all] Error 2
PyBombs.Packager.source - ERROR - Build failed. See output above for error messages.
PyBombs.Packager.source - ERROR - Problem occurred while building package gnuradio:
Build failed.
PyBombs.install - ERROR - Error installing package gnuradio. Aborting.
After a bit of research I have confirmed I have installation of the libusb library:
$ ldconfig -p | grep usb
libusbmuxd.so.2 (libc6) => /usr/lib/libusbmuxd.so.2
libusb-1.0.so.0 (libc6) => /lib/i386-linux-gnu/libusb-1.0.so.0
libusb-1.0.so.0 (libc6) => /usr/local/lib/libusb-1.0.so.0
libusb-1.0.so.0 (libc6) => /usr/lib/libusb-1.0.so.0
libusb-1.0.so (libc6) => /usr/lib/i386-linux-gnu/libusb-1.0.so
libusb-0.1.so.4 (libc6) => /lib/i386-linux-gnu/libusb-0.1.so.4
libusb-0.1.so.4 (libc6) => /usr/lib/i386-linux-gnu/libusb-0.1.so.4
libgusb.so.2 (libc6) => /usr/lib/i386-linux-gnu/libgusb.so.2
and found the required symbols in two locations:
$ nm -D /lib/i386-linux-gnu/libusb-1.0.so.0 | grep error
00004e80 T libusb_error_name
000091b0 T libusb_strerror
U strerror
$ nm -D /usr/lib/i386-linux-gnu/libusb-1.0.so | grep error
00004e80 T libusb_error_name
000091b0 T libusb_strerror
U strerror
But I am not sure why the build is not locating them.
Note: The libusb libraries were installed from the Ubuntu repository.
Is someone able to point me in the right direction so I can understand what the issue is here?
Thanks.
Okay, so I tried to remove libusb-1.0-0 with the intention of installing libusb from source. However removing libusb-1.0-0 also removed gnome-session and gvfs-backends which broke my GUI. doh!
Once this was fixed, I just tried to installed libusb from source from the libusb.info website and did the usual routine.
$ ./configure
$ make
$ sudo make install
Then I retried the PyBombs installation process and it worked.
Related
currenty I'm trying to install Riak on the Raspberry Pi 3 for testing purposes. I used the following instruction from basho:
http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/
I'm having problems compiling it from source. I tried to compile it on Raspbian Jessie and then switched to Ubuntu Server 16.04. Both times with the same result. It is not compiling and aborts at a certain point. I don't know what causes the problem since it only says: recipe for target 'util/perf_count.o' failed. Searching Google and the mailing list from basho weren't successful.
The version of gcc is gcc (Raspbian 4.9.2-10) 4.9.2. The version of Erlang is Erlang R16B02_basho8 (erts-5.10.3)
The commands i used are the following:
Installing Erlang:
wget http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02basho10.tar.gz
tar zxvf otp_src_R16B02-basho10.tar.gz
cd OTP_R16B02_basho10
./otp_build autoconf
./configure && make && sudo make install
Installing Riak:
wget http://s3.amazonaws.com/downloads.basho.com/riak/2.2/2.2.1/riak-2.2.1.tar.gz
tar zxvf riak-2.2.1.tar.gz
cd riak-2.2.1
make locked-deps
make rel
Any suggestions are welcome.
Output:
`./include/leveldb/atomics.h:155:15: note:
template argument deduction/substitution failed util/perf_count.cc:439:40:
note: deduced conflicting types for parameter ‘ValueT’
(‘unsigned int’ and‘int’ add_and_fetch(ptr_32, 1);`
`Makefile:190: recipe for target 'util/perf_count.o' failed
make[1]: *** [util/perf_count.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/Riak/riak/deps/eleveldb/c_src/leveldb'
ERROR: Command [compile] failed!
Makefile:23: recipe for target 'compile' failed
make: *** [compile] Error 1`
After digging deeper I got some help from Basho's mailing list (many thanks).
The Link below shows the steps to solve this problem:
http://lists.basho.com/pipermail/riak-users_lists.basho.com/2017-April/019187.html
The next link is a detailed instruction, which helps to install Riak on the Raspberry Pi 3:
http://docs.basho.com/riak/kv/2.2.2/setup/installing/source/
I have searched the internet all weekend and cannot find anyone who has had a similar error. I am trying to install libapache-mod-factcgi but the package errors out and I cannot figure out why.
pi#applejacks:/tmp $ sudo apt-get source -b libapache2-mod-fastcgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Skipping already downloaded file 'libapache-mod-fastcgi_2.4.7~0910052141-1.1+deb8u1.dsc'
Skipping already downloaded file 'libapache-mod-fastcgi_2.4.7~0910052141.orig.tar.gz'
Skipping already downloaded file 'libapache-mod-fastcgi_2.4.7~0910052141-1.1+deb8u1.diff.gz'
Need to get 0 B of source archives.
Skipping unpack of already unpacked source in libapache-mod-fastcgi-2.4.7~0910052141
dpkg-buildpackage: source package libapache-mod-fastcgi
dpkg-buildpackage: source version 2.4.7~0910052141-1.1+deb8u1
dpkg-buildpackage: source distribution jessie
dpkg-buildpackage: source changed by Andreas Beckmann <anbe#debian.org>
dpkg-buildpackage: host architecture armhf
dpkg-source --before-build libapache-mod-fastcgi-2.4.7~0910052141
debian/rules clean
dh_listpackages: Please specify the compatibility level in debian/compat
dh_listpackages: Compatibility levels before 5 are no longer supported (level 1 requested)
/usr/share/cdbs/1/rules/dpatch.mk:33: CDBS WARNING: dpatch.mk is deprecated since 0.4.85 - please use source format 3.0 (quilt) instead
test -x debian/rules
rmdir /tmp/libapache-mod-fastcgi-2.4.7~0910052141/build-tmp
rmdir: failed to remove ‘/tmp/libapache-mod-fastcgi-2.4.7~0910052141/build-tmp’: No such file or directory
/usr/share/cdbs/1/rules/buildcore.mk:46: recipe for target 'cleanbuilddir' failed
make: [cleanbuilddir] Error 1 (ignored)
dh_clean
dh_clean: Please specify the compatibility level in debian/compat
/usr/share/cdbs/1/rules/debhelper.mk:189: recipe for target 'clean' failed
make: *** [clean] Error 2
dpkg-buildpackage: error: debian/rules clean gave error exit status 2
Build command 'cd libapache-mod-fastcgi-2.4.7~0910052141 && dpkg-buildpackage -b -uc' failed.
E: Child process failed
I'm trying to build Apache2 on RPi also. These commands got the .deb building for me:
cd libapache-mod-fastcgi-2.4.7~0910052141;
echo 10 > debian/compat;
dpkg-buildpackage -b -uc
Then cd .. to go one level up, then install the package with dpkg -i ./libapache2-mod-fastcgi_2.4.7~0910052141-1.1+deb8u1_armhf.deb
Attempting to install my SpaceNavigator on arch linux using the open source spacenavd service. The service starts up fine, and I have the libspacenav and spacenavd packages installed. I am attempting to build spnavcfg from the sourceforge website.
http://sourceforge.net/projects/spacenav/files/
I downloaded libspacenav and spacenavd from the AUR, ran makepkg -s, and then sudo pacman -U and installed the packages locally, no issues.
spacenavcfg is another story, will probably have to build my own ABS package before I can use pacman on it, however when I extract the contents from sourceforge, it does not compile. I can successfully run sudo ./configure, but when I type 'make', I get the following error:
gcc -o spnavcfg spnavcfg.o front.o back.o cfgfile.o `pkg-config --libs gtk+-2.0`
/usr/bin/ld: front.o: undefined reference to symbol 'XOpenDisplay'
/usr/lib/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:16: recipe for target 'spnavcfg' failed
make: *** [spnavcfg] Error 1
I have not been able to figure out what the issue is, the usual google/forum trolling has not yielded any answers.
Thanks!
Barrett
Try with this AUR PKGBUILD this time: https://aur.archlinux.org/packages/spnavcfg/
This question already has answers here:
Cannot cross-compile Mono for ARM [duplicate]
(2 answers)
Cross-compiling mono for proprietary ARM device
(1 answer)
Closed 8 years ago.
I m trying to cross compile mono for arm architecture with help of scratchbox2 in Ubuntu 12.04 LTS operating system but failed to do so.
The whole process I did is given below
A. Setting Up scratchbox2
Clone the scratchbox 2 repository:
$ git clone git://gitorious.org/scratchbox2/scratchbox2.git
To build and install SB2:
$ cd scratchbox2
$ dpkg-buildpackage -rfakeroot
$ cd ..
$ sudo dpkg -i libsb2*deb scratchbox2*deb
Status: successful
B. Setting up qemu
Clone the qemu repository
git clone git://git.qemu.org/qemu.git
To build and install qemu
$ cd qemu
$ ./configure --prefix=$HOME/sb2 --target-list=arm-linux-user
$ make && make install
$ cd ..
Status: successful
C. Setting up arm tool chain
Getting the arm tool chain
$ wget https://sourcery.mentor.com/sgpp/lite/arm/portal/package8739/public/arm-none-linux-gnueabi/arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
$ tar xjvf arm-2011.03-41-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Generating a working target configuration.
$ cp -a arm-2011.03/arm-none-linux-gnueabi/libc/{lib,etc,usr} .
$ sb2-init ARM9 arm-2011.03/bin/arm-none-linux-gnueabi-gcc [ ARM9-> name of target]
Status: successful
D. Cross compiling mono
$ sb2
[SB2 simple arm9] root#Vostro-460 $ cd Desktop/mono-2.10.8.1
[SB2 simple arm9] root#Vostro-460 mono-2.10.8.1 $ ./configure --disable-mcs-build
[SB2 simple arm9] root#Vostro-460 mono-2.10.8.1 $ make
Status: failed
Error:
/usr/local/lib/libgmodule-2.0.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[4]: *** [test-glib] Error 1
make[4]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1/eglib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ushus/Desktop/mono-2.10.8.1'
make: *** [all] Error 2
I am stuck in this step. Any idea how to solve this error?
I'm trying to install Wordnet 3.0 on my Mac which is OSX 10.8.
I've configured it, but when I try make,
I get a bunch of errors...
.....
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[2]: *** [wishwn-tkAppInit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
and then if I proceed with make install
Making install in doc
Making install in html
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/WordNet-3.0/doc/html" || /Users/ravenyj/Desktop/WordNet-3.0/install-sh -d "/usr/local/WordNet-3.0/doc/html"
mkdir: /usr/local/WordNet-3.0: Permission denied
make[3]: *** [install-htmlDATA] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
I have not made any modification to Makefile, and don't know if I should.
Could anyone please help me out on this?
Using brew is orders of magnitude simpler. Just:
brew install wordnet
The following worked for me to get it to compile:
./configure CFLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive" CC=/usr/bin/gcc
then
make
sudo make install
after that it's showing up fine for me in
/usr/local/WordNet-3.0/
I then added WordNet to my $PATH by editing my .bash_profile file, adding the line:
export PATH=/usr/local/WordNet-3.0/bin:$PATH
opening a new Terminal window, I could then type:
$ wn
and see that it's now working fine
Do the following to install WordNet in fastest manner:
Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
...and press enter/return key. Wait for the command to finish.
Run:
brew install wordnet
After installation use 'wn' command in terminal to access the application.
I had the same problem too until I saw this webpage: http://ticanchang.blogspot.com/2010/04/install-wordnet-in-mac.html
In the folder of your downloaded WordNet package, type:
./configure
make
sudo make install
You need to include "sudo" because normally a user do not have the permission to update the /usr/local folder.