new to linux

Linux specific forum
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

new to linux

Post by t57042 »

Hello,

I am brand new to Linux (installed Lubuntu 12.04) and wanting to test it out with PB.
If I can not make Purebasic functioning I'll go back to Windows. :cry:

To install I found this one liner on the forum:

tar xvzf purebasic.tgz --directory=/usr/share/; apt-get -y install libgtk2.0-dev libsdl1.2-dev libsdl1.2debian-oss; ln -s /usr/share/purebasic/compilers/pbcompiler /usr/bin/pbcompiler; ln -s /usr/share/purebasic/compilers/fasm /usr/bin/fasm; ln -s /usr/share/purebasic/compilers/purebasic /usr/bin/purebasic; purebasic

After downloading the package and running the above I get this:
(the downloaded file purebasic_linux_4_60_x86_(uh6cab).tgz is in : /home/lubuntu/Downloads)

tar (child): purebasic.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ln: failed to create symbolic link `/usr/bin/pbcompiler': Permission denied
ln: failed to create symbolic link `/usr/bin/fasm': Permission denied
ln: failed to create symbolic link `/usr/bin/purebasic': Permission denied
purebasic: command not found

What is wrong?

thanks

Richard
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: new to linux

Post by moogle »

I think maybe you are missing some commands with sudo.
Image
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

Re: new to linux

Post by t57042 »

Sorry, but this is chinese for me.
Can someone tell me exactly what I have to enter?

tks
Richard
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: new to linux

Post by moogle »

t57042 wrote:Sorry, but this is chinese for me.
Can someone tell me exactly what I have to enter?

tks
Richard
If it is chinese for you then I don't think you should be using Linux or trying to install PB on it :)

The windows version is very easy to install and use.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: new to linux

Post by ts-soft »

download purebasic from your account.
open the download folder.
rightclick on archiv and unpack here.
move the purebasicfolder to home

open terminal and paste in:
Terminal wrote:sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev libxxf86vm-dev libwebkitgtk-dev
hit enter and enter your password.

run purebasic
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

Re: new to linux

Post by t57042 »

download purebasic from your account.
open the download folder.
rightclick on archiv and unpack here.
move the purebasicfolder to home

open terminal and paste in:
Terminal wrote:
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev libxxf86vm-dev libwebkitgtk-dev

hit enter and enter your password.

run purebasic
------------------------------------------------------------


Hello,

Thanks for the reply - a few more questions:

move the purebasicfolder to home:

from /home/lubuntu/downloads to /home ?

When installed how do I run PB?

best tegards

Richard
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: new to linux

Post by ts-soft »

t57042 wrote: When installed how do I run PB?
Open: /home/purebasic/compilers/purebasic
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

Re: new to linux

Post by t57042 »

I tried to install and run but it opens part of a window and blocks.
How do I move the Purebasic folder from download to Home directory?
I didn't do that - maybe that is the problem?

Richard
t57042
Enthusiast
Enthusiast
Posts: 203
Joined: Fri Feb 22, 2008 12:28 pm
Location: Belgium

Re: new to linux

Post by t57042 »

Download is ok and PB starts - when trying to run get error.

So I tried entering this in terminal:
----------------------------------------------------------------------------------------
Terminal wrote:
sudo apt-get install build-essential libgtk2.0-dev libgnome2-dev libgnomeprintui2.2-dev libxine-dev libsdl1.2-dev libiodbc2-dev libxxf86vm-dev libwebkitgtk-dev

I get:
sudo: apt-get: command not found

I am using PUPPY LINUX 5.3.1

Thanks
Richard
ferty
User
User
Posts: 70
Joined: Fri Jun 03, 2005 8:22 pm
Location: Glos,Uk

Re: new to linux

Post by ferty »

Hi,puppy does not use apt-get to handle software installations,you may be better-off asking on the puppy forums stating the files needed from the above command.

Puppy uses PET packages for software I think 5.3.1(Wary) supports RPM packages as well I am not sure about DEB packages.

So you'd need to find the files you are looking for in the form of PETs or RPMs etc.

I have had PB running an some of the puppys such as Lucid(which is compatible with Ubuntu software packages,but if I remember I had to find a lot of those files individually.

Best of luck.
They Say You Never Stop Learning,Well I Can`t Seem To Start. :(
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Re: new to linux

Post by LuCiFeR[SD] »

t57042 Each version of linux has its own little quirks and difference to other distributions.

Ubuntu is probably THE most commonly used linux distribution out there. Chopping and changing distro's just cause you cannot get something to work is pointless. You would copy the folder pretty much how you would in windows. Drag and drop... or right click and select the folder/directory and copy and paste it into the new location... or do it from the command line.

The ubuntu forums are full of useful tips on how to use the OS.

But in all seriousness, if you are struggling with the very basics of how to use an operating system, Then I would recommend familiarising yourself with just one distribution until you feel comfortable with it and then Install PB and try programming for it. Trying to run before you can walk in this case will only end in tears.
Ramihyn_
Enthusiast
Enthusiast
Posts: 314
Joined: Fri Feb 24, 2006 9:40 am

Re: new to linux

Post by Ramihyn_ »

t57042 wrote:tar xvzf purebasic.tgz --directory=/usr/share/; apt-get -y install libgtk2.0-dev libsdl1.2-dev libsdl1.2debian-oss; ln -s /usr/share/purebasic/compilers/pbcompiler /usr/bin/pbcompiler; ln -s /usr/share/purebasic/compilers/fasm /usr/bin/fasm; ln -s /usr/share/purebasic/compilers/purebasic /usr/bin/purebasic; purebasic
That is a series of individual commands seperated by ";" and written in one line. The first command is "tar xvzf purebasic.tgz --directory=/usr/share/".
t57042 wrote:After downloading the package and running the above I get this:
(the downloaded file purebasic_linux_4_60_x86_(uh6cab).tgz is in : /home/lubuntu/Downloads)

tar (child): purebasic.tgz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
"tar" is an archiver, you tried to unpack "purebasic.tgz" but you downloaded the purebasic linux version with the name "purebasic_linux_4_60_x86_(uh6cab).tgz" into the "/home/lubuntu/Downloads" directory. Some of the commands require root access, so you should probably start the whole command in a root shell (start a terminal and type "sudo /bin/bash" to get a root shell in ubuntu).

Stick to ubuntu, forget puppy linux and you should be able to get PB to run rather "easily".

You need to learn the basic linux commands though, the PB team expects linux users to do these things manually. The windows version is more comfortable and comes with an installer.
User avatar
langinagel
Enthusiast
Enthusiast
Posts: 131
Joined: Fri Jan 28, 2005 11:53 pm
Location: Germany
Contact:

Re: new to linux

Post by langinagel »

Hi,
I am not that new to Linux but I have similar problems with Lubuntu on my netbook Acer AspireOne.
Lubuntu installed, runs.
Purebasic downloaded, archive expanded to home\PRG\
sudo apt-get orgy done, checkinstall is satisfied.
Entering purebasic\compilers by browser or terminal
clicking purebasic or terminal: purebasic or ./purebasic yields:
order not found or file not found

access rights?-rwxrwxr-x 1

By the way, I downloaded freebasic, installed it (yes, admin access) and fbc is also unknown.

Could anyone please give me a hint?

Greetings
LN
update: problem is solved, Pb runs as x64 (!!!!), FB does not.
For those whoe might think I have no clue:
ACER netbook with ATOM proc, Win7-32 runs in other partition and requires PB-x86. A former Linux approach worked with PB-x86.
https://www.doerpsoft.org

Boost. Work. Efficiency.
Post Reply