Skip to content

Instantly share code, notes, and snippets.

@william-r-s
Created May 26, 2017 01:33
Show Gist options
  • Save william-r-s/a0b10ce78cf880b16110d0ad381f0ca2 to your computer and use it in GitHub Desktop.
Save william-r-s/a0b10ce78cf880b16110d0ad381f0ca2 to your computer and use it in GitHub Desktop.
Tensorflow Installation Tricks
#Installing CUDA 8.0, download runfiles version
#https://stackoverflow.com/questions/34670989/cuda-7-5-installation-unsupported-compiler-error
sudo apt-get install gcc-4.8
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
#https://devtalk.nvidia.com/default/topic/983777/can-t-locate-installutils-pm-in-inc/
./cuda*.run --tar mxvf
sudo cp InstallUtils.pm /usr/lib/x86_64-linux-gnu/perl-base/
export PERL5LIB=.
# In .profile
export CUDA_HOME="/usr/local/cuda-8.0/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment