Recent

Author Topic: Installing snapshot version on Ubuntu  (Read 6817 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1061
Installing snapshot version on Ubuntu
« on: July 04, 2009, 10:15:11 pm »
Hello,
Trying to install a snapshot version but I have problems with the detection of FPC. These are my steps:
1. Downloading fpc-src_2.2.4-20090705_i386.rpm, fpc_2.2.4-20090705_i386.rpm, lazarus_0.9.27.20793-20090705_i386.rpm
2. Converting RPM to DEB packages using Alien
3. Then installing fpc-src, fpc and lazarus.

The installation process is going without problems, but when I start Lazarus I have an error "the Free Pascal compiler (filename: fpc) was not found." Once I had the same error on Windows, but then, in Enviromnent Options I set path to fpc.exe. I am a novice Linux user and I do not know where to look for FPC

Ubuntu version 9.04

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Installing snapshot version on Ubuntu
« Reply #1 on: July 05, 2009, 01:26:04 am »
Try
The compiler path in

/usr/bin/fpc

Regards

Dibo

  • Hero Member
  • *****
  • Posts: 1061
Re: Installing snapshot version on Ubuntu
« Reply #2 on: July 05, 2009, 06:05:44 pm »
Once downloaded the latest snapshots package fpc, fpc-src and lazarus, and it looks like everything installed correctly. But this time I have a strange error while compiling a empty project. First, I have the error:
"Can not find contnrs unit used by Masks"
When you add this module I have another error:
"Can not find unit used by fpimage Graphics"
When you add this module, can not find another, and so all the time. What's happening? Is this a bug of snapshot version or is something wrong with my configuration?

SVN Revision: 20794 from 2009-07-05
« Last Edit: July 05, 2009, 06:16:17 pm by Dibo »

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Installing snapshot version on Ubuntu
« Reply #3 on: July 05, 2009, 07:42:01 pm »
May be there a conflict with an anterior fpc version.
check paths in /etc/fpc.cfg
In the line
# searchpath for units and other system dependent things
-Fu/usr/lib/$fpcversion/units/$fpctarget
-Fu/usr/lib/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/$fpcversion/units/$fpctarget/rtl

In my case is /usr/lib/fpc/2.2.2/units/i386-linux

Check in Compiler Options the correct Widgetset LCL, if you have a gtk2 not  instaled or compiled, rebuild LCL with GTK2.

Regards


picstart

  • Full Member
  • ***
  • Posts: 236
Re: Installing snapshot version on Ubuntu
« Reply #4 on: July 05, 2009, 09:06:53 pm »
It is no better with win32 snapshots. It takes next to nothing to get errors that unless you have expert status offer little clue as to what may be the true cause.
As a newbie this issue seems probabilistic. If there are 1000 files any one of which will generate failure then 99.99% accuracy is required to have a chance of seeing anything useful. The best opportunity, if you are like me and can't yet fix it yourself, is to wait for a tested release.

Dibo

  • Hero Member
  • *****
  • Posts: 1061
Re: Installing snapshot version on Ubuntu
« Reply #5 on: July 06, 2009, 09:44:57 pm »
check paths in /etc/fpc.cfg
In the line
# searchpath for units and other system dependent things
-Fu/usr/lib/$fpcversion/units/$fpctarget
-Fu/usr/lib/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/$fpcversion/units/$fpctarget/rtl
Hm, I can't find fpc.cfg file. I'm totally beginner user of linux. Search engine can't find it too.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Installing snapshot version on Ubuntu
« Reply #6 on: July 06, 2009, 09:57:46 pm »
fpc.cfg must be in /etc directory, if not exist, you can recreate it with fpcmkcfg.

Just run fpcmkcfg, and then check the paths in fpc.cfg.

Regards


Dibo

  • Hero Member
  • *****
  • Posts: 1061
Re: Installing snapshot version on Ubuntu
« Reply #7 on: July 07, 2009, 08:34:47 pm »
Thanks to all! I have not fpc.cfg file, so I created it from samplecfg. As in your case clauslack, I had to replace the path "user/lib/fpcversion" per "user/lib/fpc/fpcversion". In addition, I had to get other libraries as lX11 and lgdk_pixbuf but I found the solution here in the forum. Once again, thanks.

 

TinyPortal © 2005-2018