Difference between revisions of "Solaris"

(Introduce KBE page)
Line 3: Line 3:
 
The [http://www.opensolaris.org/os/project/kde/ KDE Project] on the OpenSolaris site is intended to be the definitive source of information, but this page on TechBase is intended to collect information, porting and compilation guides, etc. Since TechBase is a wiki, this is much easier than going through the OpenSolaris editing process.
 
The [http://www.opensolaris.org/os/project/kde/ KDE Project] on the OpenSolaris site is intended to be the definitive source of information, but this page on TechBase is intended to collect information, porting and compilation guides, etc. Since TechBase is a wiki, this is much easier than going through the OpenSolaris editing process.
  
== Compilation and Installation ==
+
=== KBE Compilation and Installation ===
  
KBE is the "KDE Build Environment" which gives you the tools needed to build the dependencies of KDE and then KDE itself. You can get [http://www.bionicmutton.org/tmp/KBE.tar.gz a tarball of KBE] and unpack that. SVN is included in there, which we need later. There is also make and cmake and other bits and pieces; vim is also included to soothe the nerves of vi-using KDE people like me.<blockquote><tt>wget http://www.bionicmutton.org/tmp/KBE.tar.gz
+
KBE is the "KDE Build Environment" which gives you the tools needed to build the dependencies of KDE and then KDE itself. You can get [http://www.bionicmutton.org/tmp/KBE.tar.gz a tarball of KBE] and unpack that. SVN is included in there, which we need later. There is also make and cmake and other bits and pieces; vim is also included to soothe the nerves of vi-using KDE people like me.<blockquote><tt>wget http://www.bionicmutton.org/tmp/KBE.tar.gz<br/>
/usr/sfw/bin/gtar xvzf KBE.tar.gz
+
/usr/sfw/bin/gtar xvzf KBE.tar.gz<br/>
cd KBE
+
cd KBE<br/>
 
bash kbe-install</tt></blockquote>
 
bash kbe-install</tt></blockquote>
 
These four commands will fetch and unpack and then start the KBE install script. This script will install dependencies that KBE has which are on the Solaris install media (SUNWi2c and twenty others, I think). Then it will start building the packages for KBE itself, starting with pkgtool. It should go off without a hitch (otherwise post output to the mailing list). If it craps out somehow, you will have to start over from scratch: <tt>pkgrm -Y KBE ; bash kbe-install</tt>.
 
These four commands will fetch and unpack and then start the KBE install script. This script will install dependencies that KBE has which are on the Solaris install media (SUNWi2c and twenty others, I think). Then it will start building the packages for KBE itself, starting with pkgtool. It should go off without a hitch (otherwise post output to the mailing list). If it craps out somehow, you will have to start over from scratch: <tt>pkgrm -Y KBE ; bash kbe-install</tt>.
 +
 +
Once KBE is done installing, you can check with <tt>pkginfo -c KBE </tt> to see what it has installed. You will have a <tt>/opt/kdebld</tt> filled with "stuff". Right. Now source the environment from KBE, which you will use in later steps:<blockquote><tt>. /opt/kdebld/bin/env.sh</tt></blockquote>
 +
(Use <tt>env.csh</tt> if that's your poison). If you don't have an env.sh at the end, something is definitely wrong. I end up with 210 or so files in <tt>/opt/kdebld/bin</tt>, so keep that in mind as a metric. There are 23 packages in the KBE group.
 +
 +
==== Avoiding KBE dependencies ====
 +
 +
You can give <tt>kbe-install</tt> a <tt>--nodeps</tt> to avoid the SUNW packages that it wants to install. You *do* need to have Sun Studio 12 9/07 or later installed; any later patches are welcome as well. I do not know what avoiding the SUNW dependencies will do, actually: they don't really seem to be essential, but I would suggest skipping this step *only* if you don't have the install media handy.
 +
 +
==== Getting help ====
 +
 +
If <tt>kbe-install</tt> does not work, please pop into #kde-solaris on Freenode (irc.kde.org works) and ask questions.

Revision as of 05:58, 22 January 2008

Solaris (and OpenSolaris) are Free Software operating systems released under the CDDL by Sun Microsystems. They are vaguely BSD-like. KDE4 runs on this operating system.

The KDE Project on the OpenSolaris site is intended to be the definitive source of information, but this page on TechBase is intended to collect information, porting and compilation guides, etc. Since TechBase is a wiki, this is much easier than going through the OpenSolaris editing process.

KBE Compilation and Installation

KBE is the "KDE Build Environment" which gives you the tools needed to build the dependencies of KDE and then KDE itself. You can get a tarball of KBE and unpack that. SVN is included in there, which we need later. There is also make and cmake and other bits and pieces; vim is also included to soothe the nerves of vi-using KDE people like me.

wget http://www.bionicmutton.org/tmp/KBE.tar.gz

/usr/sfw/bin/gtar xvzf KBE.tar.gz
cd KBE

bash kbe-install

These four commands will fetch and unpack and then start the KBE install script. This script will install dependencies that KBE has which are on the Solaris install media (SUNWi2c and twenty others, I think). Then it will start building the packages for KBE itself, starting with pkgtool. It should go off without a hitch (otherwise post output to the mailing list). If it craps out somehow, you will have to start over from scratch: pkgrm -Y KBE ; bash kbe-install.

Once KBE is done installing, you can check with pkginfo -c KBE to see what it has installed. You will have a /opt/kdebld filled with "stuff". Right. Now source the environment from KBE, which you will use in later steps:

. /opt/kdebld/bin/env.sh

(Use env.csh if that's your poison). If you don't have an env.sh at the end, something is definitely wrong. I end up with 210 or so files in /opt/kdebld/bin, so keep that in mind as a metric. There are 23 packages in the KBE group.

Avoiding KBE dependencies

You can give kbe-install a --nodeps to avoid the SUNW packages that it wants to install. You *do* need to have Sun Studio 12 9/07 or later installed; any later patches are welcome as well. I do not know what avoiding the SUNW dependencies will do, actually: they don't really seem to be essential, but I would suggest skipping this step *only* if you don't have the install media handy.

Getting help

If kbe-install does not work, please pop into #kde-solaris on Freenode (irc.kde.org works) and ask questions.


This page was last edited on 22 January 2008, at 05:58. Content is available under Creative Commons License SA 4.0 unless otherwise noted.