Problems install PB on Ubuntu

Linux specific forum
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Problems install PB on Ubuntu

Post by GedB »

I've just made the swtich to Ubuntu and while the IDE runs, I've got problems compiling.

I'm getting the following error:
Error: Linker
.0 was not found in the pkg-config search path
Perhaps you should add the directory containing 'gtk+2.0.pc'
to the PKG_CONFIG_PATH environment variable.
No package 'gtk+2.0 found
Package gthread-2.0was not found in the pkg-config search path.
Perhaps you should add the directory containing 'gthread-2.0.pc'
to the PKG_CONFIG_PAT environment variable.
No package 'gthread-2.0 found
sh: gcc: command not found
I've searched for gtk+2.0.pc on the filesystem but I cannot find it.

The package manager says that libgtk2 is installed.

I'd appreciate some help.[/quote]
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Beach wrote:Easy to install on Ubuntu... this is all I do:

Code: Select all

$ sudo apt-get install build-essential
$ sudo apt-get install libgtk1.2-dev
$ sudo apt-get install libgtk2.0-dev
$ sudo apt-get install libsdl1.2-dev
thats all and it should run!

> The package manager says that libgtk2 is installed.
libgtk2.0-dev !
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
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Thanks, I'll give it a try in the morning.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

ts-soft,

Thanks, that worked a treat.

I am blown away with how easy the switch to Ubuntu has been.

Now I hope they hurry up with 4, cos I can't live without prototypes for long.
thamarok
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 06, 2006 1:37 pm

Post by thamarok »

GedB wrote:ts-soft,

Thanks, that worked a treat.

I am blown away with how easy the switch to Ubuntu has been.

Now I hope they hurry up with 4, cos I can't live without prototypes for long.
Me neither :P
According to what the PureBasic development team said, it's just a matter of weeks before the public beta of PureBasic 4 for Linux arrives.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

ts-soft wrote:
Beach wrote:Easy to install on Ubuntu... this is all I do:

Code: Select all

$ sudo apt-get install build-essential
$ sudo apt-get install libgtk1.2-dev
$ sudo apt-get install libgtk2.0-dev
$ sudo apt-get install libsdl1.2-dev
thats all and it should run!

> The package manager says that libgtk2 is installed.
libgtk2.0-dev !
Made on kubuntu 6.10, and i got this:
Can't find package named build-essential
Can't find package named libgtk1.2-dev
Can't find package named libgtk2.0-dev
Can't find package named libsdl1.2-dev
:?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

Udpdate your
/etc/apt/sources.list

seems like there is something missing in it.
cheers,

bembulak
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Post by Brujah »

Okay, I just installed all the libs you said. And everything is working here!
:-)

Here is my sources.list in case somebody needs that.

Code: Select all

deb http://de.archive.ubuntu.com/ubuntu/ edgy main restricted 
deb-src http://de.archive.ubuntu.com/ubuntu/ edgy main restricted 

deb http://de.archive.ubuntu.com/ubuntu/ edgy-updates main restricted 
deb-src http://de.archive.ubuntu.com/ubuntu/ edgy-updates main restricted 

deb http://de.archive.ubuntu.com/ubuntu/ edgy universe multiverse 
deb-src http://de.archive.ubuntu.com/ubuntu/ edgy universe multiverse 

deb http://de.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse 
deb-src http://de.archive.ubuntu.com/ubuntu/ edgy-backports main restricted universe multiverse 

deb http://security.ubuntu.com/ubuntu edgy-security main restricted 
deb-src http://security.ubuntu.com/ubuntu edgy-security main restricted 
deb http://security.ubuntu.com/ubuntu edgy-security universe 
deb-src http://security.ubuntu.com/ubuntu edgy-security universe 

User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Thanks!
I've built my sources.list file in several ways (one of them just like you Brujah show, and another replacing 'de' by 'es' in the links), but this is the message i get:
al@al-laptop:~$ sudo apt-get install build-essential
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo información de estado... Hecho
Se instalarán los siguientes paquetes extras:
dpkg-dev g++ g++-4.1 libstdc++6-4.1-dev
Paquetes sugeridos:
debian-keyring gcc-4.1-doc lib64stdc++6 libstdc++6-4.1-doc
Se instalarán los siguientes paquetes NUEVOS:
build-essential dpkg-dev g++ g++-4.1 libstdc++6-4.1-dev
0 actualizados, 5 se instalarán, 0 para eliminar y 92 no actualizados.
Se necesita descargar 0B/4310kB de archivos.
Se utilizarán 17,0MB de espacio de disco adicional después de desempaquetar.
¿Desea continuar [S/n]? S
dpkg: syntax error: unknown group `root' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
al@al-laptop:~$
Apart of that, i've tested several debian based distros in my laptop, and all of them make the cpu fan to run very fast and so making too much noise :cry:

I will test open-suse, but i have not too much hopes on it :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Solved doing this:

Code: Select all

sudo dpkg-statoverride --remove /var/run/hplip
And also if you deleted 'root' group then do:

Code: Select all

sudo addgroup root
:)

But the noise of the fan is not solved. Perhaps suse solves it? I will tell you :roll:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Kazmirzak
User
User
Posts: 92
Joined: Fri Jun 18, 2004 5:44 pm
Location: Germany

Post by Kazmirzak »

$ sudo apt-get install build-essential
$ sudo apt-get install libgtk1.2-dev
$ sudo apt-get install libgtk2.0-dev
$ sudo apt-get install libsdl1.2-dev

These worked with me too!

PLEASE, for god's sake, write a script and include it in the purebasic folder, that a linux greenhorn has a chance to run PureBasic without having to cry out for help in the forums!

I think that's your duty - under windows, an installer would've been supported, that's for sure!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

GedB wrote:I am blown away with how easy the switch to Ubuntu has been.
Ubuntu Rocks!
--Kale

Image
Post Reply