[ug-atlosug] Problem compiling xemacs
Thomas Strömberg
thomas at stromberg.org
Thu Sep 7 07:02:59 PDT 2006
On 4 sep 2006, at 11.12, Harvey Monder wrote:
> I recently downloaded the latest version of Solaris 10 (6/06).
> When I loaded this version of the software the path that was
> generated did not include all the directories needed to make
> Xemacs. I downloaded the source and utilites as I could not find a
> precompiled version for the Intel version.
Blastwave - http://www.blastwave.org/ - has Solaris x86 packages for
xemacs. Here's the quick and dirty of it to get started with Blastwave:
% /usr/sfw/bin/wget http://www.blastwave.org/pkg_get.pkg
# pkgadd -d pkg_get.pkg
Here's how you install xemacs with it. It will install it into /opt/
csw/bin, so you will want to make sure it is part of your path:
# pkg-get -i xemacs xemacs_packages
> Can anyone help me set the proper path up and find the tools I need
> in order to get Xemacs working on my machine? Thanks.
Sure. I typically build with gcc4, though Sun has a free compiler now
as well. If you want to compile with gcc, you will want to download
gcc and binutils to install. This command will install both from
Blastwave (again, highly recommended):
# pkg-get -i gcc4core
You can see the other gcc components available with pkg-get -D gcc.
Annoyingly, Blastwave installs gcc4 in yet another path so that you
can have multiple versions of gcc installed in blastwave. You will
want to add /opt/csw/gcc4/bin to path, or symlink /opt/csw/gcc4/bin/
gcc to /opt/csw/bin/gcc. You also asked about proper path. Besides
making sure gcc is in path, you will want /usr/ccs/bin in path when
compiling. Here are the environment settings I use to make sure my
compile environment is sane under Solaris, but I'm sure everyone has
their own tweaks:
# This used to be required for compiling against the /usr/openwin/
include files, not sure about Solaris 10.
CXXFLAGS=-fpermissive
# The big thing here for compiling is to make sure /usr/ccs/bin is in
path. This is my standard Solaris path
PATH=/opt/csw/bin:/opt/csw/sbin:/opt/csw/gcc4/bin:/bin:/sbin:/usr/
sbin:/usr/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dt/bin:/usr/java/
bin:/usr/ucb:/usr/sadm/bin:/usr/sfw/bin:/usr/sfw/sbin:/usr/j2se/bin:/
usr/X11R6/bin
# This tells Solaris to make sure to hard-code this directory as a
library search path when compiling.
# Ugly yes -- but LD_LIBRARY_PATH should be avoided when possible.
LD_RUN_PATH="/usr/local/lib"
LDFLAGS="-L/usr/local/lib -R/usr/local/lib"
Hope that helps!
// Thomas Strömberg
// Linux Administrator @ Google.com
// 678-773-9475 (cell)
// http://toadstool.se/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/ug-atlosug/attachments/20060907/97d2e567/attachment-0002.html
More information about the ug-atlosug
mailing list