New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

anyone up for a little test? Freepascal on bubbaTwo

How are you using your Bubba Two or Excito B3? Got pictures? Share here!
Post Reply
msx
Posts: 106
Joined: 13 Jan 2007, 06:03
Location: Venice
Contact:

anyone up for a little test? Freepascal on bubbaTwo

Post by msx »

Hello, i'm a proud possesor of a Bubba One since years, now i'm considering purchasing a bubba Two.
I do some programming in freepascal, so i'll be very disappointed if for any reason it doesn't run on the server :)

So if anyone is avaiable for a little test, could try to run it :)

Here's the commands:

# apt-get install fp-compiler
( this should install freepascal. Take note of other installed packages to remove everythin after if you want. Must run as root)

$ echo "program hello;begin writeln('hello');end." > hello.pas
( create a small pascal program )

$ fpc hello.pas
(compiles it)

$ ./hello
(runs it, it should display "hello" )

then you can remove it with:

# apt-get remove --purge fp-compiler
carl
Posts: 474
Joined: 07 May 2008, 04:41

Post by carl »

Sadly per http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506977 fp-compiler and friends have been removed from both etch and lenny, and is at the moment only in sid (unstable), and would require an backport to get installable onto bubba (I don't know if the sid sources are directly backportable or not).

/Carl Fürstenberg
/Carl Fürstenberg, Excito Software Developer
http://www.excito.com
support@excito.com
msx
Posts: 106
Joined: 13 Jan 2007, 06:03
Location: Venice
Contact:

Post by msx »

ops, thanks carl, that was new to me.

well the binaries can be downloaded here:

http://www.freepascal.org/down/powerpc/ ... al.org.var

they should work in any version of debian (and ubuntu).
it's a bit harder than before, but if anyone wants to try, he will have my eternal gratitude :)
lelle
Posts: 69
Joined: 02 Jan 2007, 20:25
Location: Stockholm, Sweden

Post by lelle »

Hi msx, I tested it on my B2, and it installs & seem to work, please see log below.

---------
INSTALL
----------

bubba:/home/lelle# mkdir FPC
bubba:/home/lelle# cd FPC
bubba:/home/lelle/FPC# tar xvf ../fpc-2.2.4.powerpc-linux.tar
install.sh
binary.powerpc-linux.tar
demo.tar.gz
doc-pdf.tar.gz
bubba:/home/lelle/FPC# ls -ltr
total 33308
-rw-r--r-- 1 root root 6436837 2009-04-11 17:53 doc-pdf.tar.gz
-rw-r--r-- 1 root root 451433 2009-04-11 17:56 demo.tar.gz
-rwxr-xr-x 1 root root 6572 2009-04-11 18:19 install.sh
-rw-r--r-- 1 root root 27156480 2009-04-11 18:19 binary.powerpc-linux.tar
bubba:/home/lelle/FPC# ./install.sh
This shell script will attempt to install the Free Pascal Compiler
version %fullversion% with the items you select

Install prefix (/usr or /usr/local) [/usr/local] :
Installing compiler and RTL for powerpc-linux...
Installing utilities...
Install Textmode IDE (Y/n) ? Y
Install FCL (Y/n) ? Y
Installing fcl-async
Installing fcl-base
Installing fcl-db
Installing fcl-fpcunit
Installing fcl-image
Installing fcl-json
Installing fcl-net
Installing fcl-passrc
Installing fcl-process
Installing fcl-registry
Installing fcl-web
Installing fcl-xml
Install packages (Y/n) ? Y
Installing a52
Installing aspell
Installing bfd
Installing cairo
Installing cdrom
Installing chm
Installing dbus
Installing dts
Installing fftw
Installing fpgtk
Installing fpmkunit
Installing fv
Installing gdbint
Installing gdbm
Installing ggi
Installing gnome1
Installing graph
Installing gtk1
Installing gtk2
Installing hash
Installing httpd13
Installing httpd20
Installing httpd22
Installing ibase
Installing iconvenc
Installing imagemagick
Installing imlib
Installing ldap
Installing libcurl
Installing libgd
Installing libpng
Installing mad
Installing modplug
Installing mysql
Installing ncurses
Installing newt
Installing numlib
Installing odbc
Installing oggvorbis
Installing openal
Installing opengl
Installing openssl
Installing oracle
Installing pasjpeg
Installing paszlib
Installing pcap
Installing postgres
Installing pthreads
Installing pxlib
Installing regexpr
Installing sdl
Installing sqlite
Installing svgalib
Installing symbolic
Installing syslog
Installing tcl
Installing unzip
Installing users
Installing utmp
Installing uuid
Installing x11
Installing xforms
Installing zlib
Done.

Install documentation (Y/n) ? Y
Installing documentation in /usr/local/share/doc/fpc-2.2.4 ...
Done.

Install demos (Y/n) ? Y
Install demos in [/usr/local/share/doc/fpc-2.2.4/examples] :
Installing demos in /usr/local/share/doc/fpc-2.2.4/examples ...
Done.

Running on linux
Write permission in /etc.
Write permission in /usr/local/lib/fpc/2.2.4.
Directory /usr/local/lib/fpc/2.2.4/ide/text did not exist, attempting to create it now
Writing sample configuration file to /etc/fpc.cfg
Writing sample configuration file to /usr/local/lib/fpc/2.2.4/ide/text/fp.cfg
Writing sample configuration file to /usr/local/lib/fpc/2.2.4/ide/text/fp.ini

End of installation.

--------------------------
TEST COMPILE & RUN
--------------------------
bubba:/home/lelle/FPC# echo "program hello;begin writeln('hello');end." > hello.pas
bubba:/home/lelle/FPC# fpc hello.pas
Free Pascal Compiler version 2.2.4 [2009/04/11] for powerpc
Copyright (c) 1993-2008 by Florian Klaempfl
Target OS: Linux for PowerPC
Compiling hello.pas
Assembling hello
Linking hello
1 lines compiled, 1.1 sec
bubba:/home/lelle/FPC# ./hello
hello
bubba:/home/lelle/FPC#
msx
Posts: 106
Joined: 13 Jan 2007, 06:03
Location: Venice
Contact:

Re: anyone up for a little test? Freepascal on bubbaTwo

Post by msx »

great, thank you again :) sorry for the late reply
Post Reply