Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04
On 5/23/2014 10:54 PM, Activecat wrote: On Fri, May 23, 2014 at 11:28 PM, Ron Economos w...@comcast.net mailto:w...@comcast.net wrote: Chose an install directory that makes sense for you. /opt works well since it has the correct permissions. cd gnuradio mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio .. make sudo make install This will build GnuRadio and install it in /opt/gnuradio Will this later cause problem with OOT created with earlier version of gr_modtool? It seems that the /usr/local has been hard-coded into some files of the OOT, as shown below. Hence the OOT installation may fail to put all necessary files correctly into /opt/gnuradio. user1@pc1: ~/gnuradio/gr-mymodule1 $ grep -R /usr/local cmake/Modules/FindGnuradioRuntime.cmake:PATHS /usr/local/include cmake/Modules/FindGnuradioRuntime.cmake:PATHS /usr/local/lib cmake/Modules/FindGnuradioRuntime.cmake: /usr/local/lib64 cmake/Modules/FindCppUnit.cmake:/usr/local/include cmake/Modules/FindCppUnit.cmake:/usr/local/lib cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/include cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/lib cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/lib cmake/Modules/activecatConfig.cmake: /usr/local/include cmake/Modules/activecatConfig.cmake: /usr/local/lib cmake/Modules/activecatConfig.cmake: /usr/local/lib64 Custom install locations do require some additional environment setup. Sylvain gave me a nice shell script for that. BASE=/opt/gnuradio export PATH=${PATH}:${BASE}/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASE}/lib64 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${BASE}/lib64/pkgconfig export PYTHONPATH=${PYTHONPATH}:${BASE}/lib64/python2.7/site-packages/ Just change the first line to the directory of your custom install. Setting PKG_CONFIG_PATH will resolve finding packages in OOT builds. Remember to use the same custom install prefix in the cmake of your OOT builds. Ron ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04
On Sat, May 24, 2014 at 2:15 PM, Ron Economos w...@comcast.net wrote: Custom install locations do require some additional environment setup. Sylvain gave me a nice shell script for that. BASE=/opt/gnuradio export PATH=${PATH}:${BASE}/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASE}/lib64 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${BASE}/lib64/pkgconfig export PYTHONPATH=${PYTHONPATH}:${BASE}/lib64/python2.7/site-packages/ Just change the first line to the directory of your custom install. Setting PKG_CONFIG_PATH will resolve finding packages in OOT builds. Remember to use the same custom install prefix in the cmake of your OOT builds. Ron With above environment variables, do we still need to define the CMAKE_INSTALL_PREFIX ? ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04
On 5/23/2014 11:37 PM, Activecat wrote: On Sat, May 24, 2014 at 2:15 PM, Ron Economos w...@comcast.net mailto:w...@comcast.net wrote: Custom install locations do require some additional environment setup. Sylvain gave me a nice shell script for that. BASE=/opt/gnuradio export PATH=${PATH}:${BASE}/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${BASE}/lib64 export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${BASE}/lib64/pkgconfig export PYTHONPATH=${PYTHONPATH}:${BASE}/lib64/python2.7/site-packages/ Just change the first line to the directory of your custom install. Setting PKG_CONFIG_PATH will resolve finding packages in OOT builds. Remember to use the same custom install prefix in the cmake of your OOT builds. Ron With above environment variables, do we still need to define the CMAKE_INSTALL_PREFIX ? Yes, every time you build something, you need to use CMAKE_INSTALL_PREFIX with cmake. BTW, if you're going to use custom install directories, you should uninstall any old version of GnuRadio in /usr/local or /usr/. If there are remnants of GnuRadio left in /usr/local or /usr, you'll most likely have problems. Ron ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04
You can have custom install locations by telling the build-gnuradio script to not do the build. For example: ./build-gnuradio -m prereqs gitfetch This will perform the resolving of prerequisites, get the source code and use the HEAD of the master branch (which has the very latest commits to GnuRadio). Then you can do the build in a separate step. Chose an install directory that makes sense for you. /opt works well since it has the correct permissions. cd gnuradio mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio .. make sudo make install This will build GnuRadio and install it in /opt/gnuradio The down side is that you'll have to build all the other modules that you need (UHD, gr-osmosdr, gr-iqbal, etc.) one by one. Make sure you use the same install directory with cmake. It should be noted that once you have all the prerequisites on your machine, you don't have to run build-gnuradio again. Assuming you haven't changed any of the prerequisites, you can just git clone GnuRadio and build it like above. Ron On 5/23/2014 7:30 AM, Robert Light wrote: Ubuntu had a bug that libboost1.48 depends on 1.46 . It was officially highlited, but I don't know whether it was solved. I see this error very often when I install Gnuradio from sources. I then usually install 1.46 and 1.48 and it works. Although it creates some mess. A simpler solution is just use build-gnuradio script http://www.sbrac.org/files/build-gnuradio Magically it installs everything and it doesn't complain about anything. I like to have UHD and gnuradio in custom locations because I keep several versions of gnuradio, UHD and libusrp, but I don't know how to do it with this script. If you don't care about the locations just use the script. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04
On Fri, May 23, 2014 at 11:28 PM, Ron Economos w...@comcast.net wrote: Chose an install directory that makes sense for you. /opt works well since it has the correct permissions. cd gnuradio mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/opt/gnuradio .. make sudo make install This will build GnuRadio and install it in /opt/gnuradio Will this later cause problem with OOT created with earlier version of gr_modtool? It seems that the /usr/local has been hard-coded into some files of the OOT, as shown below. Hence the OOT installation may fail to put all necessary files correctly into /opt/gnuradio. user1@pc1: ~/gnuradio/gr-mymodule1 $ grep -R /usr/local cmake/Modules/FindGnuradioRuntime.cmake:PATHS /usr/local/include cmake/Modules/FindGnuradioRuntime.cmake:PATHS /usr/local/lib cmake/Modules/FindGnuradioRuntime.cmake: /usr/local/lib64 cmake/Modules/FindCppUnit.cmake:/usr/local/include cmake/Modules/FindCppUnit.cmake:/usr/local/lib cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/include cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/lib cmake/Modules/FindFFTW3.cmake:PATHS /usr/local/lib cmake/Modules/activecatConfig.cmake: /usr/local/include cmake/Modules/activecatConfig.cmake: /usr/local/lib cmake/Modules/activecatConfig.cmake: /usr/local/lib64 ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04 64-bit
Hello, I'm having some issues when I attempt to install gnuradio on a computer running Ubuntu 12.04 64-bit. I followed the installation guide on the Ettus wiki (using the Releases/Bugfixes path) (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Linux) but when I run the command gnuradio-config-info I get an error message stating: gnuradio-config-info: error while loading shared libraries: libboost_program_options.so.1.48.0: cannot open shared object file: No such file or directory. I'm not very experienced with gnuradio or linux, but it looks like when I apt-get install gnuradio, the libboost packages being downloaded are version 1.46, but when I run my command it is looking for version 1.48. Is there a way I can work around this? As I said, I'm not really familiar with apt-get or gnuradio in general. Any help you can provide would be very much appreciated! -- View this message in context: http://gnuradio.4.n7.nabble.com/Installation-issues-with-gnuradio-on-Ubuntu-12-04-64-bit-tp48405.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04 64-bit
Try: sudo apt-get remove --purge libboost* sudo apt-get install libboost1.48-all-dev You may then have to install gnuradio and uhd again, since they depend on boost: sudo apt-get install gnuradio uhd Very Respectfully, Dan CaJacob On Wed, May 21, 2014 at 4:40 PM, muse_ee brian.bubn...@jhuapl.edu wrote: Hello, I'm having some issues when I attempt to install gnuradio on a computer running Ubuntu 12.04 64-bit. I followed the installation guide on the Ettus wiki (using the Releases/Bugfixes path) (http://code.ettus.com/redmine/ettus/projects/uhd/wiki/GNURadio_Linux) but when I run the command gnuradio-config-info I get an error message stating: gnuradio-config-info: error while loading shared libraries: libboost_program_options.so.1.48.0: cannot open shared object file: No such file or directory. I'm not very experienced with gnuradio or linux, but it looks like when I apt-get install gnuradio, the libboost packages being downloaded are version 1.46, but when I run my command it is looking for version 1.48. Is there a way I can work around this? As I said, I'm not really familiar with apt-get or gnuradio in general. Any help you can provide would be very much appreciated! -- View this message in context: http://gnuradio.4.n7.nabble.com/Installation-issues-with-gnuradio-on-Ubuntu-12-04-64-bit-tp48405.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Installation issues with gnuradio on Ubuntu 12.04 64-bit
Thanks so much for the quick response! So I tried running the first set of commands that remove and re-install libboost, and as you predicted that had the effect of uninstalling gnuradio. So I ran: sudo apt-get install gnuradio uhd This gives me the following error message (excerpted from a much longer string): Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: uhd : Depends: libboost-all-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages I confirmed that I am indeed using the uhd_stable repos. Beyond that I'm not sure what to do. -- View this message in context: http://gnuradio.4.n7.nabble.com/Installation-issues-with-gnuradio-on-Ubuntu-12-04-64-bit-tp48405p48407.html Sent from the GnuRadio mailing list archive at Nabble.com. ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio