[Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-03-31 Thread Matt Welland
I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the
following when I try to run it:

Error: (require) cannot load extension: type-errors

Call history:

histstore.scm:5: ##sys#require  <--

==The Make Lines===

histstore/histstore : histstore.scm ../margs/margs.scm
chicken-install -p histstore  -deploy sqlite3 posix srfi-13 srfi-1
utils format srfi-69 regex regex-literals
csc histstore.scm -deploy

==The First Few Lines=

(use sqlite3 posix srfi-13 srfi-1 regex format)

(import (prefix sqlite3 sqlite3:))

;; (require-library margs)
(include "../margs/margs.scm")

==

Full code:
http://www.kiatoa.com/cgi-bin/fossils/opensrc/doc/tip/histstore/histstore.scm

What am I doing wrong?

Thanks
-- 
Matt
-=-
90% of the nations wealth is held by 2% of the people. Bummer to be in the
majority...
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-01 Thread Christian Kellermann
* Matt Welland  [140401 08:17]:
> I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the
> following when I try to run it:
> 
> Error: (require) cannot load extension: type-errors
> 
> Call history:
> 
> histstore.scm:5: ##sys#require  <--
> 
> ==The Make Lines===
> 
> histstore/histstore : histstore.scm ../margs/margs.scm
> chicken-install -p histstore  -deploy sqlite3 posix srfi-13 srfi-1
> utils format srfi-69 regex regex-literals
> csc histstore.scm -deploy
> 
> ==The First Few Lines=
> 
> (use sqlite3 posix srfi-13 srfi-1 regex format)
> 
> (import (prefix sqlite3 sqlite3:))
> 
> ;; (require-library margs)
> (include "../margs/margs.scm")
> 
> ==
> 
> Full code:
> http://www.kiatoa.com/cgi-bin/fossils/opensrc/doc/tip/histstore/histstore.scm
> 
> What am I doing wrong?

The csc -deploy step will install the runtime in the deployment
directory, I did not see you do that.  The way is:

1. compile your application with csc -deploy,
2. chicken-install -deploy the dependencies.

Can you try this?

Thanks,

Christian

Can you try this?

Thanks,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-01 Thread Christian Kellermann
* Christian Kellermann  [140401 10:16]:
> * Matt Welland  [140401 08:17]:
> > I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get the
> > following when I try to run it:
> > 
> > Error: (require) cannot load extension: type-errors
> > 
> > Call history:
> > 
> > histstore.scm:5: ##sys#require  <--
> > 
> > ==The Make Lines===
> > 
> > histstore/histstore : histstore.scm ../margs/margs.scm
> > chicken-install -p histstore  -deploy sqlite3 posix srfi-13 srfi-1
> > utils format srfi-69 regex regex-literals
> > csc histstore.scm -deploy
> > 
> > ==The First Few Lines=
> > 
> > (use sqlite3 posix srfi-13 srfi-1 regex format)
> > 
> > (import (prefix sqlite3 sqlite3:))
> > 
> > ;; (require-library margs)
> > (include "../margs/margs.scm")
> > 
> > ==
> > 
> > Full code:
> > http://www.kiatoa.com/cgi-bin/fossils/opensrc/doc/tip/histstore/histstore.scm
> > 
> > What am I doing wrong?

Sorry I did not have enough coffe, can you try master? This seems
to be a bug I have fixed in it. As with older versions chicken-install
-deploy will not install dependencies of the eggs you specify...

Sorry for the noise,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease.

___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Problem with deploy - executable complains it cannot load type-errors

2014-04-02 Thread Matt Welland
Thanks. Using the master fixed it!

Is there a way to specify both the directory name and the executable name
to be created when using -deploy?

Running:

csc -deploy histstore.scm -o target

will create target/target

which I then have to rename. While not a big deal if there is a better way
I'd like to know it.

Matt


On Tue, Apr 1, 2014 at 1:19 AM, Christian Kellermann wrote:

> * Christian Kellermann  [140401 10:16]:
> > * Matt Welland  [140401 08:17]:
> > > I have made a deployable exe (chicken 4.8.0.5, Ubuntu 32bit) but get
> the
> > > following when I try to run it:
> > >
> > > Error: (require) cannot load extension: type-errors
> > >
> > > Call history:
> > >
> > > histstore.scm:5: ##sys#require  <--
> > >
> > > ==The Make Lines===
> > >
> > > histstore/histstore : histstore.scm ../margs/margs.scm
> > > chicken-install -p histstore  -deploy sqlite3 posix srfi-13 srfi-1
> > > utils format srfi-69 regex regex-literals
> > > csc histstore.scm -deploy
> > >
> > > ==The First Few Lines=
> > >
> > > (use sqlite3 posix srfi-13 srfi-1 regex format)
> > >
> > > (import (prefix sqlite3 sqlite3:))
> > >
> > > ;; (require-library margs)
> > > (include "../margs/margs.scm")
> > >
> > > ==
> > >
> > > Full code:
> > >
> http://www.kiatoa.com/cgi-bin/fossils/opensrc/doc/tip/histstore/histstore.scm
> > >
> > > What am I doing wrong?
>
> Sorry I did not have enough coffe, can you try master? This seems
> to be a bug I have fixed in it. As with older versions chicken-install
> -deploy will not install dependencies of the eggs you specify...
>
> Sorry for the noise,
>
> Christian
>
> --
> May you be peaceful, may you live in safety, may you be free from
> suffering, and may you live with ease.
>



-- 
Matt
-=-
90% of the nations wealth is held by 2% of the people. Bummer to be in the
majority...
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users