Page 1 of 1

Help installing UBUNTU

Posted: Tue Mar 27, 2018 9:05 am
by loulou2522
Can someone help me installing purebasic on ubuntu.
I a new and i don't know what to do
Thanks in advance

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 9:12 am
by RSBasic
In the folder there is the file install.sh.

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 9:16 am
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.

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 11:04 am
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:

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 11:35 am
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.

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 3:09 pm
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

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 3:56 pm
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:

Re: Help installing UBUNTU

Posted: Tue Mar 27, 2018 6:03 pm
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

Re: Help installing UBUNTU

Posted: Wed Mar 28, 2018 9:22 am
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

Re: Help installing UBUNTU

Posted: Thu Mar 29, 2018 10:55 am
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

Re: Help installing UBUNTU

Posted: Thu Mar 29, 2018 11:17 am
by Dude
@loulou2522: Off-topic question: How do you create your exquisite screenshots? :shock:

Re: Help installing UBUNTU

Posted: Thu Mar 29, 2018 1:51 pm
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 ?

Re: Help installing UBUNTU

Posted: Mon Apr 02, 2018 12:59 pm
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 ?

Re: Help installing UBUNTU

Posted: Mon Apr 02, 2018 5:07 pm
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:

Re: Help installing UBUNTU

Posted: Mon Oct 14, 2019 6:51 pm
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