Page 1 of 1

Problems install PB on Ubuntu

Posted: Sun Sep 10, 2006 2:01 am
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]

Posted: Sun Sep 10, 2006 2:04 am
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 !

Posted: Sun Sep 10, 2006 2:24 am
by GedB
Thanks, I'll give it a try in the morning.

Posted: Sun Sep 10, 2006 8:56 pm
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.

Posted: Sun Sep 10, 2006 9:06 pm
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.

Posted: Fri Jan 12, 2007 12:13 am
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
:?

Posted: Fri Jan 12, 2007 8:35 am
by bembulak
Udpdate your
/etc/apt/sources.list

seems like there is something missing in it.

Posted: Fri Jan 12, 2007 2:10 pm
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 


Posted: Fri Jan 12, 2007 2:53 pm
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 :?

Posted: Fri Jan 12, 2007 4:39 pm
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:

Posted: Thu Aug 16, 2007 1:14 am
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!

Posted: Thu Aug 16, 2007 10:52 am
by Kale
GedB wrote:I am blown away with how easy the switch to Ubuntu has been.
Ubuntu Rocks!