Recent

Author Topic: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).  (Read 25893 times)

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #15 on: September 17, 2011, 11:40:26 am »
I'm not certain you want to build fpc at this point. Look at my last post. I just edited it with info on Debian fpc source packages while you were posting. I would try that first.

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #16 on: September 17, 2011, 11:58:46 am »
You may also just be able to copy that fpcsrc folder from your download straight to /usr/share. Take a look and see if it contains folders as I described in my earlier post. It may be all you need.


HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #17 on: September 17, 2011, 12:21:32 pm »
First the good news.
I downloaded fpc-source -2.4.4_2.4.4._all.deb from Debian and installed it with dpkg and I am now the proud owner of the folder
/usr.share/fpcsrc.
When I start Lazarus, the error about not finding the fpcsrc has gone, and so it looks as if fpcsrc is installed. In fact, I checked in Synaptic and found the check box for fpcsrc was green - it's installed.

Now the bad news.
When I start Lazarus and make a new application, save and run, I get the message
Quote
Fatal. Can't find interfaces used by project1




« Last Edit: September 17, 2011, 12:28:19 pm by HappyLarry »
Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #18 on: September 17, 2011, 12:33:22 pm »
I got that when I tried to compile with the QT widget set selected instead of the default GTK2 set. I didn't pursue it, since I was just playing around. Check and see what widget set you have selected. Look in Project/Options/Compiler Options/Paths and go to the drop down box near the bottom of the page.

Try changing between GTK2 and QT and see what happens.




BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #20 on: September 17, 2011, 12:49:20 pm »
@BigChimp
Thanks for the encouragement. I need it. I found a tip on the wiki
Quote
Can't find unit interfaces
    * Make sure the 'interfaces.ppu' is in the unit path, and the 'interfaces.pp' is not in the unit path. And that you only have one 'interfaces.ppu' in the unit path. You can see the unit path in Source Editor -> Right mouse click -> File Settings ... -> Unit Info -> Unit Paths;
It isn't there.
What is the path of interfaces.ppu?
Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #21 on: September 17, 2011, 12:57:48 pm »
@Rails
I have
Quote
default(GTK2)
selected which I think is right because I use a Gnome interface (?).

I changed to qt anyway as you suggested, reloaded Lazarus but with the same result - Can't find Interfaces.



Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #22 on: September 17, 2011, 01:16:25 pm »
From my installation:

/usr/lib/lazarus/0.9.30/lcl/units/i386-linux/gtk2/interfaces.ppu
/usr/lib/lazarus/0.9.30/lcl/units/i386-linux/nogui/interfaces.ppu

You may have to rebuild Lazarus, which is a routine procedure. You probably should rescan the fpc source directory first, since you just installed the source. Both are done from the IDE.

« Last Edit: September 17, 2011, 01:21:38 pm by Rails »

HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #23 on: September 17, 2011, 01:21:56 pm »
Thanks.
From the wiki  entry
Quote
You can see the unit path in Source Editor -> Right mouse click -> File Settings ... -> Unit Info -> Unit Paths;
I can see the paths and interfaces.ppu is not there. Unfortunately I can't add a new path because it is just an information box.
Any ideas?
« Last Edit: September 17, 2011, 01:24:37 pm by HappyLarry »
Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #24 on: September 17, 2011, 01:32:28 pm »
I would start by rebuilding Lazarus following the instructions in the link provided by BigChimp. Rescan the source directory first, just in case (Environment menu).

HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #25 on: September 17, 2011, 01:38:16 pm »
Rescan: done.

Rebuild: Using 'Tools/Build Lazarus with Profile Build all'

Error message
Quote
This set of options to build Lazarus is not supported by this installation.
The directory "/usr/lib/lazarus/0.9.30/lcl" is not writable.
See the Lazarus website for other ways to install Lazarus



Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #26 on: September 17, 2011, 01:41:30 pm »
Off the top of my head, I suppose you'll have to run this with Lazarus started as root, e.g. by doing gksudo startlazarus or gksudo lazarus in a GUI terminal window, IIRC...

(Not that knowledgeable about rebuilding Lazarus/fpc on linux)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #27 on: September 17, 2011, 01:59:47 pm »
I give my /usr/lib/lazarus/0.9.30/ diredtory and everything under it write permission for "Others" while I rebuild Laz.   Starting Laz under sudo gave me all kinds of problems.

Sorry, forgot about that part.


HappyLarry

  • Full Member
  • ***
  • Posts: 155
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #28 on: September 17, 2011, 02:05:27 pm »
Ran gksudo startlazarus

Tried to write 'Hello World' program and ...
it compiled and ran.
Hard to believe I know  but it's true. If I find other problems I wiil report back.

@Rails and BigChimp
Brilliant.  If I get my  book 'Install Lazarus 0.9.30 on Lucid Lynx in under 3 weeks'  published, you'll be on 5% each (joke).

Ok 10%

Cheers.



Use Lazarus and Free Pascal and stand on the shoulders of giants . . . very generous giants. Thank you.

Rails

  • Guest
Re: Problem installing Free Pascal 2.4.4 on Ubuntu 10.04 (Lucid).
« Reply #29 on: September 17, 2011, 02:11:14 pm »
Great news.   :)

I'm off to go paint some stuff. Not my idea of a fun day, but its got to be done.

Cheers.

 

TinyPortal © 2005-2018