[Ubuntu] PureBasic Dependency Installation Bash Script

Linux specific forum
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

[Ubuntu] PureBasic Dependency Installation Bash Script

Post 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
Last edited by Env on Mon Dec 12, 2011 12:07 am, edited 2 times in total.
Thanks!
Ramihyn_
Enthusiast
Enthusiast
Posts: 314
Joined: Fri Feb 24, 2006 9:40 am

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post by Ramihyn_ »

I would suggest to add the flag "-y" to apt-get and execute the script as root to make it fully automatic :)
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post 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
Thanks!
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post 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:
“Fear is a reaction. Courage is a decision.” - WC
lakomet
User
User
Posts: 53
Joined: Mon Apr 04, 2011 3:56 am
Location: Russia,Angarsk

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post by lakomet »

flaith
Why not satisfied with this package
Linux Mint Maya(Mate), x86, PureBasic 5.00(5.10b1)
Env
Enthusiast
Enthusiast
Posts: 151
Joined: Tue Apr 27, 2010 3:20 pm
Location: Wales, United Kingdom

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post by Env »

Updated list so it includes 'libXxf86vm-dev' for those experiencing problems with the 3D examples. Ensure you use the 'opengl' subsystem.


Thanks :)
Thanks!
audioguy
New User
New User
Posts: 7
Joined: Tue Dec 06, 2011 11:26 pm

Re: [Ubuntu] PureBasic Dependency Installation Bash Script

Post by audioguy »

That and the beta IDE worked for me with x86 LUbuntu 11.04.
Post Reply