1 Reply Latest reply on Mar 29, 2017 12:42 PM by volumetricsteve

    AMDPRGPU on linux install fail ( im stuck )

    happyfiower

      I dont seem the driver on ubuntu to work on the scirps, i did already did some editing but im stuck!


      If some one can help me it would be awsome!!!!!!

       

       

      This is the scrips en follow with what i did in terminal : 
      ( note, that i trying to fixt wthat error the terminal gave )

      #!/bin/bash #  set -e  REPOSITORY="/var/opt/amdgpu-pro-local"  usage() {     cat <<END_USAGE Usage: $PROG [options...]   Options:   -h|--help  display this help message   --px      PX platform support     Unless the -h|--help option is given, 'apt-get' options may be present.   END_USAGE }  function stderr() {     cat - 1>&2 }  function os_release() {     [[ -r  /etc/os-release ]] && . /etc/os-release      case "$ID" in     ubuntu         PACKAGES="amdgpu-pro amdgpu-pro-lib32 amdgpu-pro-dkms"             steamos         PACKAGES="amdgpu-pro-driver amdgpu-pro-lib32 "`             `"glx-alternative-amdgpu-pro amdgpu-pro-dkms"             *         echo "Unsupported OS" | stderr         exit 1             esac }  function source_list() {     local dir etc sourceparts       eval $(apt-config shell dir Dir)     eval $(apt-config shell etc Dir::Etc)     eval $(apt-config shell sourceparts Dir::Etc::sourceparts)       echo ${dir}${etc}${sourceparts}/amdgpu-pro.list }  function amdgpu_pro_install() {     local src=$(cd ${0%/*} && pwd -P)     local index=$src/Packages       amdgpu_pro_uninstall $@       if [[ -r $index ]];         $SUDO mkdir -p $REPOSITORY && $SUDO cp -af $src/* $_         $SUDO ln -s $_/$PROG $SBIN/${PROG%-*}-uninstall           echo "deb [ trusted=yes ] file:$REPOSITORY/ ./" | \             $SUDO tee $(source_list)         $SUDO apt-get update ||:         $SUDO apt-get $@ install $PACKAGES     fi }  function amdgpu_pro_uninstall() {     local p    local installed=       [[ -r "$(source_list)" ]] || return 0       for p in $(cat $REPOSITORY/Packages | awk '{         if ($1 == "Package:")             p = $2;         else if ($1 == "Architecture:")             print p ":" $2     }')     do         if dpkg -s $p >/dev/null 2>&1;             installed+=$p         fi     done       if [[ ${#installed[@]} -ne 0 ]];         $SUDO apt-get $@ remove --purge ${installed[@]}     fi       $SUDO rm -rf $SBIN/${PROG%-*}-uninstall $(source_list) $REPOSITORY     $SUDO apt-get update ||: }  PROG=${0##*/} SUDO=$([[ $(id -u) -ne 0 ]] && echo "sudo" ||:) SBIN="/usr/bin" os_release   while (($#)) do     case "$1" in     -h|--help)         usage         exit 0         ;;     --px)         PACKAGES="$PACKAGES xserver-xorg-video-modesetting-amdgpu-pro"         shift         ;;     *)         ARGS+="$1 "         shift         ;;     esac done   set -- $ARGS amdgpu_pro_${0##*-} $@

       

       

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      [sudo] password for kristaan:

      ln: failed to create symbolic link '/usr/bin/amdgpu-pro-uninstall': File exists

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 1: #!/bin/bash: No such file or directory

      ln: failed to create symbolic link '/usr/bin/amdgpu-pro-uninstall': File exists

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ nano amdgpu-pro-install

      Use "fg" to return to nano.

       

      [1]+  Stopped                 nano amdgpu-pro-install

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ nano amdgpu-pro-install

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ nano amdgpu-pro-install

      Use "fg" to return to nano.

       

      [2]+  Stopped                 nano amdgpu-pro-install

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ nano amdgpu-pro-install

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 1: #!/bin/bash: No such file or directory

      ln: failed to create symbolic link '/usr/bin/amdgpu-pro-uninstall': File exists

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 31: syntax error near unexpected token `;;'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 32: syntax error near unexpected token `)'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 35: syntax error near unexpected token `;;'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 36: syntax error near unexpected token `)'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 39: syntax error near unexpected token `;;'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 42:  : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 52:  : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 59: syntax error near unexpected token `then'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 69:  : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 72: syntax error near unexpected token `('

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 72: syntax error near unexpected token `)'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 83: syntax error near unexpected token `then'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 84: syntax error near unexpected token `('

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 84: syntax error near unexpected token `)'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 88: syntax error near unexpected token `then'

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 95:  : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 26:    : command not found

      ./amdgpu-pro-install: line 28:    : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 26:    : command not found

      ./amdgpu-pro-install: line 27:    : command not found

      kristaan@kristaan-Flaming-Blade:~/Downloads/amdgpu-pro-16.40-348864$ ./amdgpu-pro-install

      ./amdgpu-pro-install: line 26:    : command not found

      ./amdgpu-pro-install: line 28:    : command not found