Menu

FreeBSDBuild

There is a newer version of this page. You can find it here.
We are currently requesting that all contributions to the project are licenced under the MIT licence. Find out why?

WARNING: THIS GUIDE IS FOR ADVANCED USERS FOR USE IN BUILDING AND PORTING.

Note: Compilation with clang is now supported on FreeBSD 10 and later

1. First steps

Install FreeBSD and install/update your ports tree.

For versions of CDE prior to 2.2.4a, you must add your hostname to the localhost line in /etc/hosts. For newer CDE's, this is no longer necessary.

2. install packages

  • xorg
  • git
  • iconv
  • bdftopcf
  • libXp
  • libXScrnSaver
  • ksh93
  • open-motif

3. Edit /etc/rc.conf

Add to /etc/rc.conf

rpcbind_enable="YES"
inetd_enable="YES"

Reboot

4. Clone the source from the git repository

Use the git clone command here:

git clone git://git.code.sf.net/p/cdesktopenv/code cdesktopenv-code

or download the latest source tarball from the Files section:

5. Record all actions for troubleshooting

In case of trouble it is important to have a log file to report problems.

Use the command:

script /tmp/log.txt

to open a log file that will log everything in your terminal (also all letters
and passwords that you might type!) into the /tmp/log.txt file.

After install is complete, you can close the log file using the command "exit".

cd cdesktopenv-code/cde
mkdir -p imports/x11/include
ln -s /usr/local/include/X11 imports/x11/include
ln -s /usr/local/include/Xm imports/x11/include

7. Notes for FreeBSD 10 upwards

FreeBSD builds with clang by default, but can optionally be switched back
to gcc by installing a gccXX package as a minimum and by including the following
line in config/cf/host.def:

#define UseGcc    XX

The number in the line (XX) must correspond to the version of the installed gcc
package. Renaming of compiler binaries or symlinking from clang or gcc is not necessary
and wouldn't work anyway.

Generally, if clang works properly, you should not bother with using gcc.

8. Attempt to build

cd cdesktopenv-code/cde
make World

9. Install CDE

This has to be done as root

cd cdesktopenv-code/cde/admin/IntegTools/dbTools
./installCDE -s /path/to/cdesktopenv-code/cde

10. Close logfile

Type "exit"

/tmp/log.txt should contain recording of all your actions in this terminal.

11. Start CDE

You can now start CDE login manager as root:

/usr/dt/bin/dtlogin -nodaemon

Alternatively, you can start an X session as a normal user:

startx /usr/dt/bin/Xsession

MongoDB Logo MongoDB