Java 2 Ada

Installation FreeBSD

Version 4 by Stephane Carrez

Installation FreeBSD 13

Date: 2021-07-14


pkg install jed
pkg install sudo bash tcpdump
pkg install gmake
pkg install autoconf-2.69_3
pkg install wget
pkg install git
pkg install gnupg
pkg install gcc
pkg install openjdk11-jre-11.0.11+9.1

Add the following lines in /etc/fstab:

fdesc   /dev/fd         fdescfs         rw      0       0
proc    /proc           procfs          rw      0       0

And mount everything:


mount -a

Ada Development setup

pkg install gprbuild-20160609_1
pkg install gcc6-aux-20180516_2,1
pkg install xmlada-17.0.0_2
pkg install zip-ada-55
pkg install gdb

Ada Web Application setup

pkg install lzma
pkg install sqlite3
pkg install postgresql14-client postgresql14-server
pkg install mariadb105-client-10.5.11 mariadb105-server-10.5.11 mariadb-connector-c-3.1.10
pkg install ImageMagick7-nox11-7.0.11.12

Add the following line in /etc/rc.conf:

postgresql_enable="YES"
mysql_enable="YES"

Run Postgresql init table:

/usr/local/etc/rc.d/postgresql initdb

Start MySQL:

/usr/local/etc/rc.d/mysql-server onestart

export PATH=/usr/local/gcc6-aux/bin:$PATH
export ADA_PROJECT_PATH=/usr/local/lib/gnat