[Swift-devel] Running swift after fresh install giving errors
Michael Wilde
wilde at mcs.anl.gov
Sun Mar 20 20:14:31 CDT 2011
Yadu, can you verify that you are running the swift command from the bin/ directory that was generated when you built swift?
Since you built it from the svn trunk src it seems, you should be doing something like this to run it (assuming your src tree start at $HOME/swift/src/):
PATH=$HOME/swift/src/cog/modules/swift/dist/swift-svn/bin::$PATH
swift mytest.swift
The swift command expects to find the jar files it requires at swift/bin/../lib as you can see from these lines in the bin/swift shell script:
---
SWIFT_HOME=`dirname $MY_PATH`"/.."
if [ ! -f "$SWIFT_HOME/lib/cog-swift-svn.jar" ] && [ ! -f "$SWIFT_HOME/lib/cog.jar" ] ; then
echo "Error: SWIFT_HOME is not set, and all attempts at guessing it failed"
---
- Mike
----- Original Message -----
> Hi,
>
> I am fairly new to swift and I'm getting the following error when I
> try to
> run swift :
> Error: SWIFT_HOME is not set, and all attempts at guessing it failed
>
> I am using the development version and the build was reported to be
> successful. Googling for this didn't help much and setting SWIFT_HOME
> or swift.home manually is advised against here [1]. Nevertheless I
> tries
> that as well to no use.
>
> Any suggestion to fix this will be greatly appreciated.
>
> The details of my system are :
> Ubuntu 10.10
> sun Java version "1.6.0_24"
>
>
> [1] http://www.ci.uchicago.edu/swift/guides/userguide.php
> --
> Thanks and Regards,
> Yadu Nand B
> (+91 94477 80725)
> ( http://humanint.posterous.com )
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
--
Michael Wilde
Computation Institute, University of Chicago
Mathematics and Computer Science Division
Argonne National Laboratory
More information about the Swift-devel
mailing list