Sign in Join

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

Mailing lists / fpc-devel / 2004-03

Errata in the install.sh for linux binary install

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Nigel Whitley

I tried to install fpc v1.0.10 on my Slackware 9.1 Linux system using the binary package with source.

After problems getting the source part to install, I examined the install script and I think it is faulty. I've created an amended version which does what I
expected the script would do.
A diff of the two files is included below - I'll
happily send you the changed script if you want it. The errors seem to have been the result of cutting and pasting similar text but then not changing everything that needed changing - I do that.

The main problem is that the $PREFIX variable is being used as a target for untarring the source - I believe this should target $SRCDIR.
Similarly the docs are untarred to $PREFIX instead of $DOCDIR.

The reason these problems may be masked is that the script also fails to ensure the source directory
exists before trying to untar the archive.
The same problem does not arise with the documentation directory because this will be created by the
mandatory binary.tar extraction. In my version I've added a comment to that effect.

Thanks for the hard work in producing the compiler - I hope this helps.

Nigel Whitley

113,114d112
< echo $DOCDIR
<
149c147,148
< unztar basesrc.tar.gz $PREFIX
---

makedirhierarch $SRCDIR unztar basesrc.tar.gz $SRCDIR

151c150
< unztar compilersrc.tar.gz $PREFIX
---

unztar compilersrc.tar.gz $SRCDIR

154c153
< unztar rtlsrc.tar.gz $PREFIX
---

unztar rtlsrc.tar.gz $SRCDIR

157c156
< unztar fclsrc.tar.gz $PREFIX
---

unztar fclsrc.tar.gz $SRCDIR

160c159
< unztar idesrc.tar.gz $PREFIX
---

unztar idesrc.tar.gz $SRCDIR

163c162
< unztar installersrc.tar.gz $PREFIX
---

unztar installersrc.tar.gz $SRCDIR

171c170
< unztar $f $PREFIX
---

unztar $f $SRCDIR

182c181,182
< unztar docs.tar.gz $PREFIX
---

# Dont need "makedirhierarch $DOCDIR" because the

binary tar will create it

unztar docs.tar.gz $DOCDIR

___________________________________________________________ Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

Reply by email

Michael Van Canneyt
to Nigel Whitley
I tried to install fpc v1.0.10 on my Slackware 9.1 Linux system using the binary package with source.

Unfortunately the install script has changed significantly in the latest 1.9.X release, and exactly the part you debugged was changed. I will check the new script for errors, but I would be surprised if there were any left, since we haven't had any error reports...

Michael.

Reply by email