Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating Lazarus, and configuring fpc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Tue May 03, 2005 4:56 am    Post subject: Creating Lazarus, and configuring fpc Reply with quote

Noticed Lazarus in the portage directory the other day and decided to install it. (Yup, no life, lookin through the portage tree...)

It has a bunch of dependencies but the only major one is fpc. (Free Pascal Compiler). At this point doing an emerge of fpc will install version 1.9.8 (which I've heard is supposed to be the final release candidate for version2) but will fail to do the configuration. So I'm here to help you finish the job :)

If you looked around in /usr/lib/fpc/1.9.8 you will see a script called samplecfg. It's looking for the fpc location and the etc location.
Code:

su -
cd /usr/lib/fpc/1.9.8
./samplecfg /usr/lib/fpc/1.9.8 /etc


Check over the fpc.cfg now located in the /etc directory and modify paths and flags to suit your tastes.

You are now ready to emerge Lazarus. You couldn't do this before because it needs a properly configured pascal compiler to compile it.

Code:

emerge lazarus


Last step.

The link for Lazarus needs to be created in order to be able to start it.

Code:

ln -s /usr/share/lazarus/startlazarus /usr/bin/lazarus


you can now type lazarus on the command line and it will start up. It will need some configuration adjustments, and I'll edit this in the future (with any help from others). On the best way to configure.

I suspect that these ebuilds will change since they don't complete the install properly, and install Lazarus in the /usr/share directory (I wouldn't have guessed that!) However this is not a criticism of the author as I looked at building ebuilds for these packages myself and chickened out. These have gotten us more then 1/2 way there.

*Edit* removed the first fix for fpc, as the ebuild seems to have been fixed.


Last edited by iplayfast on Tue May 10, 2005 3:24 am; edited 1 time in total
Back to top
View user's profile Send private message
Gacha
n00b
n00b


Joined: 24 Apr 2004
Posts: 10
Location: Latvia

PostPosted: Tue May 03, 2005 7:04 am    Post subject: Reply with quote

Thanks for help, I will try this later.
Back to top
View user's profile Send private message
jamiethehutt
n00b
n00b


Joined: 04 Oct 2004
Posts: 66
Location: Scotland!

PostPosted: Wed May 04, 2005 8:35 am    Post subject: Reply with quote

Hmm when I installed FPC I never had any of these problems. :?

Nice howto all the same.
_________________
"Someday, he thought, it'll be mandatory that we all sell the McDonald's hamburger as well as buy it; we'll sell it back and forth to each other forever from our living rooms. That way we won't even have to go outside." - A Scanner Darkly By PK Dick
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Wed May 04, 2005 11:17 am    Post subject: Reply with quote

I tried this, and got "fpc-2.0.0_rc2" and did not need the first "fix". However I still needed the second one!

Thanks!

(It's so long since I played with Delphi for Windoze that it's gonna take a lot of remembering!)
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Wed May 04, 2005 2:39 pm    Post subject: Reply with quote

davecs wrote:
I tried this, and got "fpc-2.0.0_rc2" and did not need the first "fix". However I still needed the second one!

Thanks!

(It's so long since I played with Delphi for Windoze that it's gonna take a lot of remembering!)



Whas my first fix the same as what got installed normally for you?
Back to top
View user's profile Send private message
davecs
Guru
Guru


Joined: 08 Nov 2003
Posts: 436
Location: Dagenham, GB

PostPosted: Sat May 07, 2005 4:17 pm    Post subject: Reply with quote

iplayfast wrote:

Was my first fix the same as what got installed normally for you?


No, I just looked and all the files /usr/bin/fpc* are executables, no links. And no fpc386, just

fpc, fpcmake. fpcmkcfg, fpcsubst

Strange, eh?
_________________
Gentoo, PCLOS-pre-81a and Windows 98SE.
Shuttle SN41G2V2
Athlon XP2500+ o/c to 3200+, 2x256Mb Geil Value RAM, FX5200.
Ntlworld cable internet via ethernet
and PC-Chips Desknote Laptop (with PCLOS-pre-81a )
Back to top
View user's profile Send private message
iplayfast
l33t
l33t


Joined: 08 Jul 2002
Posts: 642
Location: Cambridge On,CA

PostPosted: Tue May 10, 2005 3:21 am    Post subject: Reply with quote

Well I just unmerged and then re-emerged and it's now working the same for me. (fpcmake et all) So I'll edit my original link. Looks like it's been fixed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum