swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Swarm 1.2 on Linux 5.0


From: Paul Johnson
Subject: Re: Building Swarm 1.2 on Linux 5.0
Date: Sat, 15 Aug 1998 10:57:16 -0500 (CDT)

Dear Laurence:
I know it can be done!  I can also
see you've done careful research on how to install this. It
makes it a lot easier to help you.

If you can get root access, or know someone who does, I'm working on RPMs for
swarm and you could save yourself some grief. You might have to wait a while,
though, perhaps three weeks or so.  

I've made some comments below. I think you need some work on paths in your
swarm configure and think about the environment
LD_LIBRARY_PATH.

On Sat, 15 Aug 1998, L.A. Clark wrote:
> In /home/laurence
> 
> mkdir swarm             (to hold the tool-chain)
> mkdir swarm-1.2     (for the destination version of swarm)
> cd swarm
> 
> Build libffi-1.18
> 
> cp /tmp/ftp/libffi-1.18.tar.gz
> tar -xvzf libffi-1.18.tar.gz
> rm *.gz
> cd libffi-1.18
> ./configure --prefix=/home/laurence/swarm
> make
> make install
> 
In the future, create a place for sources under your swarm dir, 
as in /home/laurence/swarm/src, and copy tarballs into that and expand
them. As it is, you have a swarm directory that is getting busy looking.

As you did it, this should have installed ok. 
Note this creates a directory /home/laurence/swarm/lib where your new
libffi library lives. Right?

> Build tcl8.0
> 
> cd ..
> cp /tmp/ftp/tcl8.0p2.tar.gz .
> tar -xvzf tcl8.0p2.tar.gz
> rm *.gz
> cd tcl8.0/unix
> ./configure --prefix=/home/laurence/swarm --enable-gcc --enable-shared
> make
> make install
> 
You should take a look in /home/laurence/swarm/bin /home/laurence/swarm/lib,
etc, just to see that those files are there.

> Build Tk8.0
> 
> cd ../..
> cp /tmp/ftp/tk8.0p2.tar.gz .
> tar -xvzf tk8.0p2.tar.gz
> rm *.gz
> cd tk8.0/unix
> ./configure --prefix=/home/laurence/swarm --enable-gcc --enable-shared
> make
> make install
> 
> Build Blt8.0unoff
> 
> cd ../..
> cp /tmp/ftp/blt8.0-unoff-swarm-0.tar.gz .
> tar -xvzf blt8.0-unoff-swarm-0.tar.gz .
> rm *.gz
> cd blt8.0-unoff/unix
> mkdir Linux
> cd Linux
> ../configure --prefix=/home/laurence/swarm --enable-shared
> make
> cd ../../demos
> ./barchart
> cd ../unix/Linux
> make install
> cd /home/laurence/swarm/blt8.0-unoff/lib
> ln -sf shared/libBLT8.0.so libBLT.so
> 
> Build tclobjc
> 
> cd ../..
> cp /tmp/ftp/tclobjc-1.4.tar.gz .
> tar -xvzf tclobjc-1.4.tar.gz
> rm *.gz
> cd tclobjc-1.4
> ./configure --prefix=/home/laurence/swarm/tclobjc-1.4
> vi Makefile
> 
Puzzling why you didnt put the prefix like the others you did,
/home/laurence/swarm.   This will complicate things a bit!

> Change the following lines in the Makefile
> TCL_INCLUDE FLAGS = /home/laurence/swarm/include
> TK_INCLUDE_FLAGS = /home/laurence/swarm/include
> TCL_LIBRARY_FLAGS = -L/home/laurence/swarm/lib -ltcl8.0
> TK_LIBRARY_FLAGS = -L/home/laurence/swarm/lib -ltk8.0
> 
> make
> make check


> cd /home/laurence/swarm/libffi-1.18/include
> cp * /home/laurence/swarm/include
There is a mistake here, I think.  After the make check, you type
"make install" and the include and lib files should be copied over
automatically.  If I left that out, sorry.  You should never have
to hand copy include files like you did. If I said you should, I was
crazy. (dangerous admission to a large mailing list)

Incidentally, I don't recall having tried tclobjc1.4, but what you did would
have worked for  1.3, so this is probably ok after a make install. 

> Build Swarm
> 
> cd /home/laurence/swarm/
> cp /tmp/ftp/swarm-1.2.tar.gz .
> tar -xvzf swarm-1.2.tar.gz
> rm *.gz
> ln -sf swarm-1.2 swarm
> cd swarm
> ./configure --prefix=/home/laurence/swarm-1.2
> --with-ffidir=/home/laurence/swarm
> --with-tclobjcdir=/home/laurence/swarm/tclobjc-1.4
> --with-bltdir=/home/laurence/swarm/blt8.0-unoff
> --with-tkdir=/home/laurence/swarm --with-tcldir=/home/laurence/swarm
> make
> 
above you set the blt prefix to /home/laurence/swarm, but here you 
add the /blt8.0-unoff.  That is a mistake. Generally, the "--with-somethingdir
lines should match the prefix statements you give in configure.

To be consistent, with swarm 1-2 you might as well intall into
/home/laurence/swarm.  You have already got subdirectories bin, lib, include,
etc, and you might as well use them for the swarm stuff.  That's a big
difference in design and installation from swarm.1.1 to swarm 1.2, and
the instructions you are looking at were for 1.1.  Swarm evolved to install
more like a regular programming library.  (The SFI team is working more in
that direction for the future, incidentally).

One other thing. Since you don't have root access, you have to be careful about
the LD path.  I don't know if it is affecting you here, but it will surely
affect you if you try to run a swarmapp. The root user can change
/etc/ld.so.conf and add in a directory like /home/laurence/swarm/lib and so
forth.  Then running /sbin/ldconfig would make the OS aware of your libraries.
Since you cant, I think you want to force the compiler to look in your places
for tcl/tk and so forth, so you can create an environment with a command such as

export
LD_LIBRARY_PATH:/home/laurence/swarm/lib:/home/laurence/swarm/tclobjc-1.4/lib:/home/laurences/swarm/swarm-1.2/lib:
 $LD_LIBRARY_PATH

(this line may get broken up by the mailer) Note since you put the tclobjc stuff
in s different directory structure from the other swarm libs, you need a
separate line for it. Same for swarm 1.2.  If you make all the prefixes
the same in the configuration, then you don't need that, of course.

Good luck, let me know how it turns out.

Paul E. Johnson                      address@hidden
Dept. of Political Science           http://lark.cc.ukans.edu/~pauljohn
University of Kansas                 Office: (913) 864-9086
Lawrence, Kansas 66045               FAX: (913) 864-5700
 


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]