Differences

This shows you the differences between two versions of the page.

Link to this comparison view

installingonfreebsd [2015/10/03 14:54]
installingonfreebsd [2015/10/03 14:54] (current)
Line 1: Line 1:
 +====== Installing EDE on FreeBSD ======
 +
 +===== Introduction =====
 +
 +This tutorial shows how to install latest EDE version on [[http://​www.freebsd.org|FreeBSD]] (8.x releases) and how to setup it for daily usage. %%FreeBSD%% 8.x was selected as it is bridge between 9.x and legacy 7.x versions, so installing on those versions should be quite similar.
 +
 +The tutorial assume you have already have installed and configured OS; if not so, please consult %%FreeBSD%% manuals about installation procedure. For purpose of this tutorial, I'm using //​Standard//​ installation with //User// profile.
 +
 +===== Installing prerequisites =====
 +
 +First, we need to install cURL, FLTK and jam. EDE uses [[http://​curl.haxx.se | cURL]] to for bug reports and, during this tutorial, you will use it to get NetInstall script. It is fine to not install cURL if you decide to manualy compile everything as bug reporting will be disabled when EDE is configured and compiled. By running command:
 +
 +<​code>​
 +pkg_add -r fltk jam curl dbus
 +</​code>​
 +
 +you will get FLTK runtime, development libraries with their requirements and jam build tool. After this, make sure you have running DBus; usually it will be running, but just in case check your ///​etc/​rc.conf//​ to have these lines:
 +
 +<​code>​
 +dbus_enable="​YES"​
 +hald_enable="​YES"​
 +</​code>​
 +
 +Before we proceed, you can check if FLTK was installed correctly. To do so, run:
 +
 +<​code>​
 +fluid
 +</​code>​
 +
 +This is FLTK GUI designer and if is running without problems, EDE should work too. In case you get this error:
 +
 +<​code>​
 +Unable to find fonts. Check your FontConfig configuration.
 +</​code>​
 +
 +and fluid refuse to start, you probably have bad xorg installation. Try to reinstall it with:
 +
 +<​code>​
 +pkg_add -r xorg -f
 +</​code>​
 +
 +===== Installing with netinstall =====
 +
 +:!: Because of bug in NetInstall, make sure to you install doxygen tool first or NetInstall will report installation failure.
 +
 +This part will cover using NetInstall tool. First you download it with:
 +
 +<​code>​
 +curl -O http://​equinox-project.org/​netinstall
 +</​code>​
 +
 +and start as superuser:
 +
 +<​code>​
 +python netinstall
 +</​code>​
 +
 +NetInstall will then download edelib and EDE sources, unpack them and install in **/​usr/​local**. If something fails, the error will be reported for further inspection.
 +
 +===== Installing manually =====
 +
 +If you want to install EDE and edelib on custom location with custom flags (e.g. enable debug feature or compile with custom FLTK version), of simply you don't want to use NetInstall, this is the way to do it. First, download edelib and EDE from [[Download | download page]] and the commands (first edelib):
 +
 +<​code>​
 +$ tar -xzpvf edelib-<​VERSION>​.tar.gz
 +$ cd edelib-<​VERSION>​
 +$ ./configure && jam
 +$ su                     # install edelib as root
 +$ jam install
 +</​code>​
 +
 +Next will come EDE. If you changed edelib installation path, make sure to adjust //​PKG_CONFIG_PATH//​ variable (it should always point to **<​prefix>/​lib/​pkgconfig**).
 +
 +<​code>​
 +$ tar -xzpvf ede-<​VERSION>​.tar.gz
 +$ cd ede-<​VERSION>​
 +$ export PKG_CONFIG_PATH="​$PKG_CONFIG_PATH:/​usr/​local/​lib/​pkgconfig" ​    # or change it if you have other location
 +$ ./configure && jam
 +$ su                    # install EDE as root
 +$ jam install
 +</​code>​
 +
 +===== Starting EDE =====
 +
 +Unless you have display manager (like xdm or gdm) and you start your X session with //startx// command, in your //xinitrc// file (located at **~/​.xinitrc** or if you don't you have it, copy it to the same location and file from ///​usr/​local/​lib/​X11/​xinit/​xinitrc//​):​
 +
 +<​code>​
 +startede
 +</​code>​
 +
 +save it and run //startx//.
 +
 +If you have some display manager, just copy the file **<​prefix>/​share/​xsessions/​ede.desktop** to **/​usr/​share/​xsessions**,​ as root. By doing this, you will get EDE as alternative desktop in display manager session list; logout from current session and EDE option should be visible.
  
Print/export