Author Topic: Compiling Gambas3 - missing some libs  (Read 1364 times)

Offline jjvr2000

  • New Friend
  • *
  • Posts: 3
Compiling Gambas3 - missing some libs
« on: August 27, 2012, 08:25:56 AM »

RUNNING:
Linux version 3.2.18-pclos2.bfs (as@dv1710.as) (gcc version 4.5.2 (GCC) ) #1 SMP PREEMPT Thu May 24 04:44:50 CEST 2012

I am trying to compile Gambas3 but am having a problem with missing library components. The Gambas site lists the following requirements for Mandriva:
gettext-devel libbzip2_1-devel libcurl-devel libkdecore5 libmesagl1-devel libmesaglu1-devel libmysql-devel libORBit2-devel libpcre-devel libpoppler-devel libpq-devel libqt3-devel librsvg2-devel libSDL-devel libsqlite0-devel libsqlite3-devel libxml2-devel libxslt-devel postgresql-devel task-c-devel task-c++-devel zlib1-devel libffi-devel libgtk+-devel libgtk+2.0_0-devel libqt4-devel libgdk-pixbuf2-devel libimlib2-devel libv4l-devel

but the following are not found by apt-get:
libkdecore5 task-c-devel task-c++-devel libgdk-pixbuf2-devel

Is there a cross reference of file names between PCLOS and other distros that I could use to find what I need?

I see here, http://www.pclinuxos.com/forum/index.php/topic,104364.msg890380.html#msg890380, that Coffeetime has produced some Gambas3 RPMs but been able to find them or mention of them anywhere.

Co-incidentally I cannot find Aptitude in the repository, I am using
http://ftp.heanet.ie/pub/pclinuxos/apt/

Offline yonnie

  • Full Member
  • ***
  • Posts: 92
Re: Compiling Gambas3 - missing some libs
« Reply #1 on: August 28, 2012, 07:37:00 PM »
jjvr... Be sure to post any solutions to this.  I for one would like to have the latest Gambas3 in the repo along with QCAD and latest in GEDA.
 I've borked this install before and don't want a repeat of that episode so am waiting for what I want to appear in the repo's.

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8826
  • Aurum nostrum non est aurum vulgi.
Re: Compiling Gambas3 - missing some libs
« Reply #2 on: August 28, 2012, 11:33:59 PM »
Open a console. Type, locate kdecore. Type, rpm -qf <location_of>libkdecore.so.5. You will need to install the development headers of that package which would be kdelibs-devel.

As for the others, use the Synaptic search. But don't use whole word searches. For example, for libgdk-pixbuf2-devel just search pixbuf then select the package nearest to what is required.

There is no Aptitude. PCLinuxOS doesn't use it. Use Synaptic instead.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline jjvr2000

  • New Friend
  • *
  • Posts: 3
Re: Compiling Gambas3 - missing some libs
« Reply #3 on: August 29, 2012, 02:55:11 PM »
Yonnie,

I am not there yet but seem to be tantalisingly close. I found this site:
http://www.archlinux.org/groups/i686/gambas3/
very useful for looking up the dependencies needed for each gambas3 package. Unfortunately it has been hunt and peck progress so I do not have good notes to post.

Archie,

Thanks for the tip re. searching for dependencies, it helped. I think I am almost there but have hit a version snag with the following message from configure:

'checking for llvm-config... (cached) /usr/bin/llvm-config
checking for LLVM - version >= 3.1... no
configure: WARNING: gb.jit is disabled'

The version I have found in the repository is llvm 2.9-1pclos2011. Assuming I have not missed a later version somehow is there anything I can do other than wait until the repository version is updated?

re. Aptitude, pity. I have just got use to using it on a Raspberry Pi and prefer it to apt-get as a cli installer.

Jay.


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15829
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Compiling Gambas3 - missing some libs
« Reply #4 on: August 29, 2012, 03:18:04 PM »

RUNNING:
Linux version 3.2.18-pclos2.bfs (as@dv1710.as) (gcc version 4.5.2 (GCC) ) #1 SMP PREEMPT Thu May 24 04:44:50 CEST 2012

I am trying to compile Gambas3 but am having a problem with missing library components. The Gambas site lists the following requirements for Mandriva:
     
We are not Mandriva. Nor are we based on Mandriva.     

Quote
gettext-devel libbzip2_1-devel libcurl-devel libkdecore5
     
You will not find libkdecore5 in our repo any time soon.     

Quote
libmesagl1-devel libmesaglu1-devel libmysql-devel libORBit2-devel libpcre-devel libpoppler-devel libpq-devel libqt3-devel librsvg2-devel libSDL-devel libsqlite0-devel libsqlite3-devel libxml2-devel libxslt-devel postgresql-devel task-c-devel task-c++-devel zlib1-devel libffi-devel libgtk+-devel libgtk+2.0_0-devel libqt4-devel libgdk-pixbuf2-devel libimlib2-devel libv4l-devel

but the following are not found by apt-get:
libkdecore5 task-c-devel task-c++-devel libgdk-pixbuf2-devel

Is there a cross reference of file names between PCLOS and other distros that I could use to find what I need?

I see here, http://www.pclinuxos.com/forum/index.php/topic,104364.msg890380.html#msg890380, that Coffeetime has produced some Gambas3 RPMs but been able to find them or mention of them anywhere.

Co-incidentally I cannot find Aptitude in the repository, I am using
http://ftp.heanet.ie/pub/pclinuxos/apt/
     
Either we do not have a dependency, it's in a different place, or it's named different. That is one of the reasons we advise against installing from outside sources. Another is that if you are successful, the changes to your system render it too different from the standard PCLinuxOS install and make it unsupportable; i.e. Your system becomes officially unsupported.     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8826
  • Aurum nostrum non est aurum vulgi.
Re: Compiling Gambas3 - missing some libs
« Reply #5 on: August 29, 2012, 08:17:15 PM »
Yonnie,

I am not there yet but seem to be tantalisingly close. I found this site:
http://www.archlinux.org/groups/i686/gambas3/
very useful for looking up the dependencies needed for each gambas3 package. Unfortunately it has been hunt and peck progress so I do not have good notes to post.

Archie,

Thanks for the tip re. searching for dependencies, it helped. I think I am almost there but have hit a version snag with the following message from configure:

'checking for llvm-config... (cached) /usr/bin/llvm-config
checking for LLVM - version >= 3.1... no
configure: WARNING: gb.jit is disabled'

The version I have found in the repository is llvm 2.9-1pclos2011. Assuming I have not missed a later version somehow is there anything I can do other than wait until the repository version is updated?

re. Aptitude, pity. I have just got use to using it on a Raspberry Pi and prefer it to apt-get as a cli installer.

Jay.




There'd be two ways to look at this. If ./configure allows you to disable llvm then you can try that. Otherwise, if the version required is higher than what is on the repo, you can try building the require version llvm as well. Have you tried consulting the package's README? The developers usually gives helpful hints for builds and installs.

Good luck.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline jjvr2000

  • New Friend
  • *
  • Posts: 3
Re: Compiling Gambas3 - missing some libs
« Reply #6 on: August 30, 2012, 03:12:46 AM »
Neal,

I appreciate your comments and advice. Let me explain what I am trying to do, right away saying that this is new ground for me. I have used PCLinuxOS as a Desktop since the 2007 distro, which is why I am here and not in some other forum. Recently I caught the Raspberry Pi (RPi) bug, a whole load of reasons but lets keep this short.

I wanted to use a RPi to run a home management software called DomotiGa, which runs on Gambas. I got Gambas3 compiled on the RPi and DomotiGa running on it so decided to learn more about Gambas by brushing off a retired Thinkpad R60 and installing PCLOS-2012. As it is a single task machine, that I can easily reinstall, trying things on it is not an issue, so I'll take your advice and try compiling llvm.

Regarding Mandriva. The Gambas site lists the prerequisites for a number of distros but not PCLinuxOS, the list for Mandriva seemed to have the closest naming convention so I used it to search in Synaptic and got more hits than misses.

As to what PCLinuxOS is. For me it proved an excellent way to get a look into Linux, coming from Windows, and to go on to wanting to take a look 'under the hood'. I also understand the need to maintain a supportable, stable, standard; which is probably why PCLinuxOS is so easy for a Linux neophyte to use.

My questions are:
- what should someone in my position do; if I now start installing non-distro software? I am not experienced enough to think I can do so with out needing support at some point. Would I be right thinking that I should then address any issues to the developers of the software component that seems to be causing the problem, rather than in this forum?

- the version of llvm that I am looking for 3.1 will presumably be included in the repository when it is next updated, is there a timetable for updates?

- is it planned to add Gambas3 to the distro in the near future?

Jay.

 

Offline trat50

  • New Friend
  • *
  • Posts: 1
Re: Compiling Gambas3 - missing some libs
« Reply #7 on: November 04, 2012, 10:55:30 AM »
Jay, That's a good question.  I was a PCLinuxOS user for years.  I went to a different distro to have access to Gambas 2.19 & 3 (and get away from the new and improved KDE).  I'd like to come back to PCLinuxOS, but lately I have been enjoying E17 enlightenment quite a bit.  Has Gambas3 hit the PCLOS repositories yet?  Have you been able to get Gambas3 working on your PC?