Open cedricss opened 11 years ago
Windows 7 users: for the moment you can copy templates from here: https://github.com/cedricss/opa-templates
new to this, having the same win64 issues as everyone else... Also getting BUG 2... downloaded the templates, where do I put them???
@Shishoo templates are initial project structures, ready to compile, with source examples, conf and Makefile (install make for Windows and you can type make run
). Just copy a template directory (mvc-small
by default) in your working directory and you can start building your app on top of this.
Hi Cedric,
I installed gnu make, and after a little faffing around I got it to 'make'... and it generates an .exe file, however, make run generates the above error... any ideas?
@Shishoo if it's the same error I guess you should use the same workaround: make
then node myapp.exe
to run it. Patch the run
rule in the Makefile for convenience, so you can use make run
.
Hi I am expreiencing both - unable to run compiled via Sublime Text unable to run opa-create - bothe thesee due to the x64 x86 error message as above. While trying to create via node I get the above given bug 2.
Are you guys working on it?
A year ago everything worked but there was no book. Now I got the book but I cannot go through the first chapter because the software ceased support for Windows 7... :| Please help!
Could switching to an older build of OPA x64 (current version is not available in x64) for Windows make any difference?
Anybody?
As you may have guessed, no one in the core team is using Windows. It's mostly community contributions that made it happen... and we'd love if someone could contribute here.
It's still a bit of a problem. I think OPA should focus on extending its programming community base to support major platforms. That support is hardly a case now, which makes it very difficult to use in comparison with other frameworks and highers the entry threshold considerably. I, for example, am an enthousiast but completely green in programming. I thought opa would be a nice entry point because it incorporates couple of new technologies and concepts. Perhaps it is not mature enough yet.
Hi, I solve the Bug 1 by modify the opa.bat to:
@echo off
set OLDPATH=%PATH%
set OPABASEDIRLIB=%OPABASEDIR%\lib
set OPABASEDIRMINGW=%OPABASEDIRLIB%\mingw
set MLSTATELIBS=%OPABASEDIR%
set PATH=%OPABASEDIR%\bin;%OPABASEDIRMINGW%\bin;%OLDPATH%
if "%1"=="create" (
if "%2"=="" (
node "%OPABASEDIR%\bin\opa-create.exe"
) else (
node "%OPABASEDIR%\bin\opa-create.exe" --name "%2"
)
) else (
"%OPABASEDIR%\lib\opa\bin\opa-bin.exe" --no-color %*
)
set PATH=%OLDPATH%
But, I have no idea about Bug2. So I copy the template and try make it:
"### Building executable myapp.exe " opa --opx-dir _build --import-package stdlib.database.mongo --conf opa.conf --conf-opa-files -o myapp.exe --build-dir _build/myapp.exe [Finished in 3.2s]
And then I run it:
E:\Work\CurWork\Chat>node myapp.exe
module.js:340
throw err;
^
Error: Cannot find module 'myapp.controller.opx'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
I found a myapp.controller.opx subdir under then _building. But I don't know how to make it work.
Any one help me?
Sry, My english is poor.
Hey,
It seems like the project died young. I no longer even can find any links to precompiled builds for windows. Such a shame. I thought that it might become the next big thing in web dev.
Greetz,
Bron Bronek
Hi,
Opa is definitely NOT dead. Windows is an environment that we don't use and its development is entirely up to the community. If anyone wants to provide a build, we will gladly host it. Also, please submit pull requests with patches related to windows and we will gladly accept them.
Henri
Could someone please fix this as this is outside of my technical ability and really want to get this running on home machine. I have windows 8 on a laptop and I will try to install there to see if that works.
Unless someone using Windows can fix the build, a suggested way is to use vagrant to deploy a linux virtual machine where you can install Opa under any operating system.
We will provide an Opa box soon.
Hi Henri, Bradley,
What do you mean by opa box. A machine bundled with an OPA IDE?
Greets!
Bron On 18 Dec 2013 22:20, "Henri" notifications@github.com wrote:
Unless someone using Windows can fix the build, a suggested way is to use vagrant to deploy a linux virtual machine where you can install Opa under any operating system.
We will provide an Opa box soon.
— Reply to this email directly or view it on GitHubhttps://github.com/MLstate/opalang/issues/111#issuecomment-30881860 .
@hbbio Never heard of vagrant before but looks promising. Can you share a vagrant file?
We will release a vagrant box for Opa 1.1.2 in January along with a tutorial. This way, everybody will be able to access the Opa development platform.
Is there a way to get a a vagrant box for Opa running on a Windows 7 (32-bit) ?
[update] Windows 7 users: for the moment you can copy templates from here: https://github.com/cedricss/opa-templates
On Windows 7
(it's working on Vista)
Opa 1.1.0
Bug 1
Shows an incompatibily error message, impossible to execute. Maybe because of the ".exe" extension.
Workaround:
Bug 2