Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-02

Can't configure fppkg

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Krzysztof

Hi,

I'm trying to configure fppkg, because seems that this is only way to install GeckoPort version 2 (wiki.freepascal.org/GeckoPort_version2). I'm using thos tips: wiki.freepascal.org/fppkg#Configuration . I have CodeTyphon 4.0 so paths to FPC are different and can't configure it

What I did:
1. I added path to fpc binaries in linux PATH:
/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc
2. First call of "fppkg list" created .fppkg directory (with /config subdir) and .config/fppkg.cfg file
3. Changed .config/fppkg.cfg to:

[Defaults]
ConfigVersion=4
LocalRepository={UserDir}.fppkg/
BuildDir={LocalRepository}build/
ArchivesDir={LocalRepository}archives/
CompilerConfigDir={LocalRepository}config/
RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto
CompilerConfig=fpconf.cfg
FPMakeCompilerConfig=fpc.cfg
Downloader=lnet

4. I created file .fppkg/config/fpconf.cfg with values:

[Defaults]
ConfigVersion=4
GlobalPrefix=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc LocalPrefix={LocalRepository}
Compiler=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc OS=linux
CPU=x86_64
Version=2.7.1

5. And finally copy file /usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc.cfg to .fppkg/config/fpc.cfg
6. Now calling "fppkg list" return me:

Name Installed Available
embweb - 0.9.0-926
gecko - 2.9.0-3
jquery - 0.9.0-842
lazmkunit - 0.9.3-1
lnet - 0.6.4-2534
webdesign - 0.9.0-906

So it looks like it is working, but command "fppkg install gecko" return:

"The FPC Package tool encountered the following error: [gecko] Package rtl <none> is not available"

Sven Barth
to Krzysztof
Krzysztof wrote 29 lines
Hi, I'm trying to configure fppkg, because seems that this is only way to install GeckoPort version 2 (wiki.freepascal.org/GeckoPort_version2 <http://wiki.freepascal.org/GeckoPort_version2>). I'm using thos tips: wiki.freepascal.org/fppkg#Configuration <http://wiki.freepascal.org/fppkg#Configuration> . I have CodeTyphon 4.0 so paths to FPC are different and can't configure it What I did: 1. I added path to fpc binaries in linux PATH: /usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc 2. First call of "fppkg list" created .fppkg directory (with /config subdir) and .config/fppkg.cfg file 3. Changed .config/fppkg.cfg to: [Defaults] ConfigVersion=4 LocalRepository={UserDir}.fppkg/ BuildDir={LocalRepository}build/ ArchivesDir={LocalRepository}archives/ CompilerConfigDir={LocalRepository}config/ RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto CompilerConfig=fpconf.cfg FPMakeCompilerConfig=fpc.cfg Downloader=lnet

FPMakeCompilerConfig might need to point to fpconf.cfg in this case as well if I've understood the wiki article correctly...

Regards,
Sven

Sven Barth
to Krzysztof: I'm trying to configure fppkg, because seems that this is only way to install GeckoPort…
Krzysztof wrote 34 lines
Hi, I'm trying to configure fppkg, because seems that this is only way to install GeckoPort version 2 (wiki.freepascal.org/GeckoPort_version2 <http://wiki.freepascal.org/GeckoPort_version2>). I'm using thos tips: wiki.freepascal.org/fppkg#Configuration <http://wiki.freepascal.org/fppkg#Configuration> . I have CodeTyphon 4.0 so paths to FPC are different and can't configure it What I did: 1. I added path to fpc binaries in linux PATH: /usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc 2. First call of "fppkg list" created .fppkg directory (with /config subdir) and .config/fppkg.cfg file 3. Changed .config/fppkg.cfg to: [Defaults] ConfigVersion=4 LocalRepository={UserDir}.fppkg/ BuildDir={LocalRepository}build/ ArchivesDir={LocalRepository}archives/ CompilerConfigDir={LocalRepository}config/ RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto CompilerConfig=fpconf.cfg FPMakeCompilerConfig=fpc.cfg Downloader=lnet 4. I created file .fppkg/config/fpconf.cfg with values: [Defaults] ConfigVersion=4 GlobalPrefix=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc

I have read the configuration article again and it seems that you need to use the path which contains the FPC units here. I don't use CodeTyphon, but it could be /usr/lib/codetyphon/fpc.

Show quoted text 5 lines
LocalPrefix={LocalRepository} Compiler=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc OS=linux CPU=x86_64 Version=2.7.1

My suggestion regarding fpconf.cfg from my other mail is still valid though ;)

Sven Barth
to Sven Barth
Sven Barth wrote 39 lines
On 13.02.2013 16:49, Krzysztof wrote: > > Hi, > > I'm trying to configure fppkg, because seems that this is only way to > install GeckoPort version 2 (wiki.freepascal.org/GeckoPort_version2 > <http://wiki.freepascal.org/GeckoPort_version2>). I'm using thos tips: > wiki.freepascal.org/fppkg#Configuration > <http://wiki.freepascal.org/fppkg#Configuration> . I have CodeTyphon 4.0 > so paths to FPC are different and can't configure it > > What I did: > 1. I added path to fpc binaries in linux PATH: > /usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc > 2. First call of "fppkg list" created .fppkg directory (with /config > subdir) and .config/fppkg.cfg file > 3. Changed .config/fppkg.cfg to: > > [Defaults] > ConfigVersion=4 > LocalRepository={UserDir}.fppkg/ > BuildDir={LocalRepository}build/ > ArchivesDir={LocalRepository}archives/ > CompilerConfigDir={LocalRepository}config/ > RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml > RemoteRepository=auto > CompilerConfig=fpconf.cfg > FPMakeCompilerConfig=fpc.cfg > Downloader=lnet > > 4. I created file .fppkg/config/fpconf.cfg with values: > > [Defaults] > ConfigVersion=4 > GlobalPrefix=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc I have read the configuration article again and it seems that you need to use the path which contains the FPC units here. I don't use CodeTyphon, but it could be /usr/lib/codetyphon/fpc.

Make sure to add a "/" at the end and then a "fppkg list" should show not only the few online packages, but also the "builtin" packages provided by fpc installation.

Regards,
Sven

Krzysztof
to Sven Barth

Ok, I changed GlobalPrefix to fpc source path (it is /usr/lib/codetyphon/fpcsrc/) but still same result. So my files looks like:

fpconf.cfg
[Defaults]
ConfigVersion=4
GlobalPrefix=/usr/lib/codetyphon/fpcsrc/
LocalPrefix={LocalRepository}
Compiler=/usr/lib/codetyphon/fpc/bin/x86_64-linux/fpc OS=linux
CPU=x86_64
Version=2.7.1

fppkg.cfg
[Defaults]
ConfigVersion=4
LocalRepository={UserDir}.fppkg/
BuildDir={LocalRepository}build/
ArchivesDir={LocalRepository}archives/
CompilerConfigDir={LocalRepository}config/
RemoteMirrors=http://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto
CompilerConfig=fpconf.cfg
FPMakeCompilerConfig=fpconf.cfg
Downloader=lnet

Sven Barth
to Krzysztof
Krzysztof wrote
Ok, I changed GlobalPrefix to fpc source path (it is /usr/lib/codetyphon/fpcsrc/) but still same result. So my files looks like:

Not the SOURCE path. The path which contains the COMPILED units. So this should be '/usr/lib/codytyphon/fpc' (the correct target directory will be - hopefully - picked by fppkg).

Regards,
Sven