Help installing UBUNTU

Linux specific forum
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Help installing UBUNTU

Post by loulou2522 »

Can someone help me installing purebasic on ubuntu.
I a new and i don't know what to do
Thanks in advance
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Help installing UBUNTU

Post by RSBasic »

In the folder there is the file install.sh.
Image
Image
Saboteur
Enthusiast
Enthusiast
Posts: 271
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Re: Help installing UBUNTU

Post by Saboteur »

When you download linux Purebasic version, and copy it in a local folder of your pc, there is a file that check libraries you need to use Purebasic. It is "checkinstall.sh".
Then, you only have to install that libraries, for example: "sudo apt install library1 library2... etc", until checkinstall is ok.
With command "register.sh" you register the purebasic files.
With "launch.sh" you launch purebasic. xD

You can read INSTALL file too.
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Help installing UBUNTU

Post by Marc56us »

loulou2522 wrote:Can someone help me installing purebasic on ubuntu.
I a new and i don't know what to do
Thanks in advance
New to Linux ou new to PB on Linux ?
  • Expand the archive to a directory where you have write permission
    tar xvzf <archive name>
  • Launch checkinstall script
    ./checkinstall.sh
    :!: For security, Linux (and most unix) does not allow to run a script directly (without relative or absolute path)
    To run for example the script checkinstall.sh you need to type ./checkinstall.sh (or the full path)
    To remove this security (not recommended) it is necessary to put a dot in the variable PATH. But if you do this and type "*" by mistake, then all scripts and programs in the current directory start.
  • After running checkinstall it is enough to copy the update line
:wink:
Bitblazer
Enthusiast
Enthusiast
Posts: 733
Joined: Mon Apr 10, 2017 6:17 pm
Location: Germany
Contact:

Re: Help installing UBUNTU

Post by Bitblazer »

Just keep in mind that for most install commands like apt-get for packages, you need to execute them as root. sudo is your friend or just log in as root.
webpage - discord chat links -> purebasic GPT4All
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: Help installing UBUNTU

Post by loulou2522 »

New to Linux ou new to PB on Linux ?
  • Expand the archive to a directory where you have write permission
    tar xvzf <archive name>
  • Launch checkinstall script
    ./checkinstall.sh
Entirely new to Linux so i don't know what to do to install Purebasic
If you can help me but with basic explaination
I have Ubuntu 14 on VirtualBox installed

__________________________________________________
List tag repaired
27.03.2018
RSBasic
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Help installing UBUNTU

Post by Marc56us »

1. Before start VM, take a Snapshots of your VM
https://www.virtualbox.org/manual/ch01.html#snapshots

2. Update your linux system. Open a console
$ su -
# apt-get update
# apt-get upgrade
# ^D
$


I don't know where Ubuntu store user program, so for this test, put PB in your home dir '~'
(cd ~ in Linux/unix = cd %homepath% in Windows)

Go to the dir where is your archive
If you have downloaded it with firefox, your archive is in ~/Downloads/
$ cd ~/Downloads/

Copy it to your home dir

$ cp purebasic-demo.tar.gz ~

Uncompress it
$ tar xvzf purebasic-demo.tar.gz

Go into new dir
$ cd purebasic_demo/

Check config
$ sh checkinstall.sh
or
$ ./checkinstall.sh

if system say:
This script try to detect if all developments packages are correctly installed. If you are using a Debian or Ubuntu like distribution, you can use the following line to install all needed packages:

$ sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev

Everything seems correctly setup for PureBasic !

This OK
Launch PB
$ ./launch.sh

If you don't have message "Everything seems correctly setup for PureBasic !"

Copy / paste line into the middle of message
$ sudo apt-get install gcc ...
Wait until everything is updated...

Launch again
$ ./launch.sh

(Your VM need to be connected to the net for auto update)

:wink:
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: Help installing UBUNTU

Post by loulou2522 »

Thanks Marc56us
With what you say i try successfull installing Linux.
I have two problem with purebasic
- I can obtain french version it's only in English ?
- I can't acess with file option the my network but linux can access to the network
Regards
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Help installing UBUNTU

Post by Marc56us »

loulou2522 wrote:- I can obtain french version it's only in English ?
Like in PB Windows
File > Preference > General > Language > Français
IDE will be in french immediatly.

But to have help file in french when press F1 key, you need to close and open PB.
(all help files are installed, but PB launch the one that IDE use at start)
loulou2522 wrote:- I can't acess with file option the my network but linux can access to the network
Is it with the same user? (the one who launches PB)

Or do you forgot to clic on arrow ?
To go up to home dir when open file in PB IDE, click on left arrow (here xfce)


Home dir is by default /home/<user name>
$ cd
or
$ cd ~
go to home dir
Last edited by Marc56us on Fri Mar 20, 2020 2:30 pm, edited 1 time in total.
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: Help installing UBUNTU

Post by loulou2522 »

loulou2522 wrote:- I can't acess with file option the my network but linux can access to the network
Is it with the same user? (the one who launches PB)

Or do you forgot to clic on arrow ?
To go up to home dir when open file in PB IDE, click on left arrow (here xfce)
Image

Home dir is by default /home/<user name>
$ cd
or
$ cd ~
go to home dir[/quote]
I can' arrive to solve the problem. My problem is because i want to load a pb file since my network and when i want to access to the network purebasic don't display the icon of the network. But under linux the network appear in screen
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Help installing UBUNTU

Post by Dude »

@loulou2522: Off-topic question: How do you create your exquisite screenshots? :shock:
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: Help installing UBUNTU

Post by loulou2522 »

Dude wrote:@loulou2522: Off-topic question: How do you create your exquisite screenshots? :shock:
I dont't understand very well english what is "expuisite screenshtos" means ?
After i will respond to you ?
loulou2522
Enthusiast
Enthusiast
Posts: 495
Joined: Tue Oct 14, 2014 12:09 pm

Re: Help installing UBUNTU

Post by loulou2522 »

Allways a problem with registering extension PB. Executing register.sh don't solve the problem.
Can someone help me for a cleaner install ?
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: Help installing UBUNTU

Post by Marc56us »

@loulou2522
You don't need to register extensions for PB to work. register.sh is just used to open the IDE if you double-click on a.pb,.pbi or.pbf file in the GUI

(The notion of extension does not exist under Linux/Unix, it is just not to confuse Windows users who come to Linux.
For a script or some source code, the system (unix type) uses information on the first line, called Shebang. PB don't use it.
The comment character followed by an exclamation mark or < is the only case where a comment is interpreted and not ignored.
We find this type of comment for example also in SQL and in C)

@Dude
Screenshots above are made with FastStone Capture The latest version (8.9) has new graphic options.

:wink:
dmhess
New User
New User
Posts: 1
Joined: Mon Oct 14, 2019 5:19 pm

Re: Help installing UBUNTU

Post by dmhess »

$ sudo apt-get install gcc g++ libc6-dev libsdl1.2-dev libgtk-3-dev unixodbc-dev libgnome2-dev libxine2-dev libwebkitgtk-3.0-dev libxxf86vm-dev libwebkitgtk-dev libwebkitgtk-3.0-dev

Thank you! This solved all of my problems!! Mint 19.1
Post Reply