Re: [shoes] Shoes does not resolve properly a require
- From:
- Cecil Coupe
- Date:
- 2011-12-17 @ 03:16
The first thing I would do is search the Windows box to see where
elexis_config.rb ended up. If it's nowhere then you debug why its not in
the package. If it is in the wrong place, you debug that.
On Sat, 2011-12-17 at 03:38 +0100, Niklaus Giger wrote:
> Hi
>
> I packaged my application and when I tried to install it under Windows I get
> the following error
>
> no such file to load -- C:/Users/Niklaus/AppData/Local/Temp/lib/elexis_config.rb
> elexis-inst-0.0.4.rb:7:in `require`
> elexis-inst-0.0.4.rb:7:in `<main>`
> C:/Program Files/Common Files/Shoes/0.r1514/lib/shoes.rb:428:in `eval`
> C:/Program Files/Common Files/Shoes/0.r1514/lib/shoes.rb:428:in `visit`
> (eval):1 in `main`
>
>
> My file looks like this:
>
> #!/opt/src/shoes/dist/shoes
> # Copyright 2011 Niklaus Giger <niklaus.giger@member.fsf.org>
> require 'tempfile'
> require 'logger'
> require 'fileutils'
> InstPath = "#{File.expand_path(File.dirname(__FILE__))}/lib/elexis_config.rb"
> require InstPath
>
>
> What is wrong with my require? Any workaround would be appreciated.
>
> Best regards
>
> Niklaus Giger
>
Re: [shoes] Shoes does not resolve properly a require
- From:
- ashbb
- Date:
- 2011-12-18 @ 03:32
Hi Niklaus,
> I packaged my application
> and when I tried to install it under Windows I get the following error
>
> no such file to load --
C:/Users/Niklaus/AppData/Local/Temp/lib/elexis_config.rb
How did you package?
The above file path doesn't include "shoes-appname.number", eg.
"shoes-hello.8112".
So, I guess that you packaged your app as the following steps:
- `shoes -p` on the console window
- Not click `directory` link
- Package for `Windows`
- then create .exe file
If your app is not single file but has multiple files, you have to put all
files under one directory and package the directory.
ashbb
Re: [shoes] Shoes does not resolve properly a require
- From:
- Niklaus Giger
- Date:
- 2011-12-19 @ 09:42
Hi ashbb
Moving all files into one directory & packaging resolved my problem.
Many thanks for your tip!
Best regards
Niklaus
> Hi Niklaus,
>
> > I packaged my application
> > and when I tried to install it under Windows I get the following error
> >
> > no such file to load --
>
> C:/Users/Niklaus/AppData/Local/Temp/lib/elexis_config.rb
> How did you package?
> The above file path doesn't include "shoes-appname.number", eg.
> "shoes-hello.8112".
> So, I guess that you packaged your app as the following steps:
>
> - `shoes -p` on the console window
> - Not click `directory` link
> - Package for `Windows`
> - then create .exe file
>
> If your app is not single file but has multiple files, you have to put all
> files under one directory and package the directory.
>
> ashbb
--
Niklaus Giger