Page 1 of 1
new to linux
Posted: Fri May 04, 2012 8:33 pm
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.
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
Re: new to linux
Posted: Fri May 04, 2012 8:44 pm
by moogle
I think maybe you are missing some commands with sudo.
Re: new to linux
Posted: Sat May 05, 2012 7:01 am
by t57042
Sorry, but this is chinese for me.
Can someone tell me exactly what I have to enter?
tks
Richard
Re: new to linux
Posted: Sat May 05, 2012 7:03 pm
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.
Re: new to linux
Posted: Sat May 05, 2012 7:11 pm
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
Re: new to linux
Posted: Sat May 12, 2012 2:32 pm
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
Re: new to linux
Posted: Sat May 12, 2012 2:44 pm
by ts-soft
t57042 wrote:
When installed how do I run PB?
Open: /home/purebasic/compilers/purebasic
Re: new to linux
Posted: Sat May 12, 2012 4:30 pm
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
Re: new to linux
Posted: Sat May 19, 2012 2:22 pm
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
Re: new to linux
Posted: Sun May 20, 2012 11:47 am
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.
Re: new to linux
Posted: Sun May 20, 2012 7:44 pm
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.
Re: new to linux
Posted: Mon May 21, 2012 3:49 am
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.
Re: new to linux
Posted: Sat Mar 02, 2013 10:46 am
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.