Skip to content

Instantly share code, notes, and snippets.

@jags14385
Created April 30, 2018 23:32
Show Gist options
  • Save jags14385/ca3d568cd5bd15ac51e5a18029f9dbb8 to your computer and use it in GitHub Desktop.
Save jags14385/ca3d568cd5bd15ac51e5a18029f9dbb8 to your computer and use it in GitHub Desktop.

Revisions

  1. jags14385 created this gist Apr 30, 2018.
    33 changes: 33 additions & 0 deletions Setting up the Deep Learning Env
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    Step 1 : Assemble the PC
    Step 2 : Create an bootable Ubuntu 18.04 LTS flash drive
    install CUDA 9.1 on Ubuntu 18.04 using the .run file & gcc version 6 & g++ version 6

    Url : https://askubuntu.com/questions/1028830/install-cuda-on-ubuntu-18-04
    Url : https://askubuntu.com/questions/26498/choose-gcc-and-g-version

    First erased the current update-alternatives setup for gcc and g++:

    sudo update-alternatives --remove-all gcc
    sudo update-alternatives --remove-all g++

    Install Packages

    It seems that both gcc-4.3 and gcc-4.4 are installed after install build-essential. However, we can explicitly install the following packages:

    sudo apt-get install gcc-4.3 gcc-4.4 g++-4.3 g++-4.4

    Install Alternatives

    Symbolic links cc and c++ are installed by default. We will install symbol links for gcc and g++, then link cc and c++ to gcc and g++ respectively.

    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.3 10
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 20

    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.3 10
    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.4 20

    sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30
    sudo update-alternatives --set cc /usr/bin/gcc

    sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30
    sudo update-alternatives --set c++ /usr/bin/g++