Talk:InstallingGR
DRAFT revisions to "To install system wide"
To install system wide
For this example, we will start in the home directory; you can, of course, use any directory you wish and the results will be the same.
cdgit clone --recursive https://github.com/gnuradio/gnuradio.gitcd gnuradiogit checkout maint-3.8# changemaint-3.8if you want to use a different version; see releasesmkdir buildcd buildcmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/usr/bin/python3 ..
Notes:
1) If your computer's CPU has multiple cores, you can use the -j# option for make to speed compilation, e.g., make -j3; specify one less than the number of CPU cores so the system does not appear to 'freeze'.
2) Use -DCMAKE_INSTALL_PREFIX=XXX in the cmake command to install GNU Radio into the PREFIX XXX; if not specified then the PREFIX is /usr/local.
makemake testsudo make install
If you're running Linux, then always remember to do the following command after installing any library:
sudo ldconfig
Go to Setting PYTHONPATH to set your PYTHONPATH and LD_LIBRARY_PATH. After setting these environment variables, you might need to redo this last command for the Linux dynamic library loader to find the just-installed GNU Radio libraries.