Page 1 of 1

[Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Wed Nov 30, 2011 3:53 pm
by Env
Hey all,

Find below code that'll install all the required dependencies for PureBasic for use on a Linux machine. I use virtual machines quite alot, and rather than having to spend an unjust amount of time searching for dependency packages each time I create a linux vm in which I will be using PureBasic, I found it easier just to write this bash script:

pb-dependencies.sh

Code: Select all

sudo apt-get install gcc -y
sudo apt-get install libgtk2.0-dev -y
sudo apt-get install libsdl1.2-dev -y
sudo apt-get install libstdc++6 -y
sudo apt-get install libiodbc2 -y
sudo apt-get install libiodbc2-dev -y
sudo apt-get install libxine1 -y
sudo apt-get install libxine-dev -y
sudo apt-get install libgnomeprintui2.2-0 -y
sudo apt-get install libgnomeprintui2.2-dev -y
sudo apt-get install gtk2-engines-pixbuf -y
sudo apt-get install libXxf86vm-dev -y
Usage:
  • Create a new document on your Linux desktop called "pb-dependencies.sh", copy the contents of the code above into the document, and ensure the file has execution privileges.
    (File Properties/Permissions/'Allow executing file as program')
  • Execute the file by double-clicking on it.
  • Enter your password to enable Super-User when requested.
  • Acknowledge and answer prompts if they present themselves.
Change Log:
  • Added '-y' parameter to apt-get calls (as suggested by Ramihyn_) to add a bit more automation.
  • Added installation for 'libXxf86vm-dev' for developing 3D applications. (Using opengl subsystem.)
And that should be it in theory..

Disclaimer: I'm in no way a linux-savvy guy so I'm guessing there is a simpler, more efficient way of achieving this, but this is the method I have adopted, and it works for me :)

Thanks :D

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Wed Nov 30, 2011 4:09 pm
by Ramihyn_
I would suggest to add the flag "-y" to apt-get and execute the script as root to make it fully automatic :)

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Wed Nov 30, 2011 4:18 pm
by Env
You see, always an easier way :P

Thanks, Ramihyn_ - I've added the '-y' parameter as you suggested. As for running it as root, that's entirely down to the person executing the script :P


Thanks :D

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Wed Nov 30, 2011 6:34 pm
by flaith
Perfect timing, i just needed it right now
Thanks a lot :D

[EDIT] I've added the line

Code: Select all

sudo apt-get install libgnome2-dev -y
for my needs :wink:

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Thu Dec 01, 2011 6:52 am
by lakomet
flaith
Why not satisfied with this package

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Mon Dec 12, 2011 12:08 am
by Env
Updated list so it includes 'libXxf86vm-dev' for those experiencing problems with the 3D examples. Ensure you use the 'opengl' subsystem.


Thanks :)

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Posted: Mon Dec 12, 2011 12:13 am
by audioguy
That and the beta IDE worked for me with x86 LUbuntu 11.04.