Advertisement
Mark2020H

Script to auto sort codelite on openSUSE 15.1

Feb 16th, 2020
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. #!/bin/bash
  2. # Run the script through dos2unix after downloading
  3. # to install dos2unix from command line
  4. # dont forget to chmod the script with commands chmod +x <Scriptname.sh>
  5.  
  6.  
  7.  
  8. echo  "Sorting out Codelite  which wont load"
  9. echo  "Reporting error while loading shared libraries: "
  10. echo " libplugin.so: cannot open shared object file: No such file or directory"
  11. echo  "MD Harrington Next issue with openSUSE Leap 15.1  No end of errors found so far !"
  12. echo
  13. echo
  14.  
  15. echo "installing dos2unix for you in case this does not exist Patiance  "
  16. sudo zypper install dos2unix
  17.  
  18.  
  19. sleep 3s
  20. clear
  21.  
  22. echo "Changing to admin status "
  23.  
  24. echo " Changing to directory etc/ld.so.conf.d"
  25. cd /etc/ld.so.conf.d
  26.  
  27. echo "Adding /usr/lib64/codelite  to codelite.conf so codelite can find libraries "
  28. sleep 3s
  29. echo
  30. echo
  31. echo "Please wait while this is done "
  32. sudo touch /etc/ld.so.conf.d/codelite.conf
  33. sudo chmod 777 codelite.conf
  34. echo "/usr/lib64/codelite" >> codelite.conf
  35.  
  36. echo "Self check to see if done  result of cat codelite.conf are ... "
  37. echo
  38.  
  39. cat /etc/ld.so.conf.d/codelite.conf
  40.  
  41. echo
  42. echo
  43.  
  44. echo "Now reloading libraries"
  45.  
  46. sudo ldconfig
  47.  
  48. echo " You should now be able to run codelite  with no issues we hope !!"
  49. echo "Thanks  done !! "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement