简体   繁体   English

mlstate / opa vagrant box安装问题

[英]mlstate/opa vagrant box installation issue

I stumble upon the OPA framework for Javascript and decided to give it a shot. 我偶然发现了JavaOPA框架,并决定尝试一下。

Prefering a Vagrant Box, I did as suggested: 我更喜欢一个无聊的盒子,我按照建议去做:

vagrant init mlstate/opa
vagrant up

but unfortunately it failed: Allegedly the box file is corrupted as bsdtar.exe couldn't even recognize the format while unpacking it. 但不幸的是它失败了:据称该盒文件已损坏,因为bsdtar.exe甚至在解bsdtar.exe都无法识别该格式。

What can I do, I need an official OPA Vagrant Box up and running on my Win7 machine to harness it. 我该怎么办,我需要一个官方的OPA Vagrant Box并在Win7机器上运行以利用它。

I have the same problem on my Mac laptop. 我的Mac笔记本电脑上也有同样的问题。 Installing the Vagrant Box from Vagrant Cloud does not seem to be working... 从Vagrant Cloud安装Vagrant Box似乎无法正常工作...

In alternative, you can try downloading the box file using the torrent on this link : http://opalang.org/Opa%20vagrant%20box.torrent 或者,您可以尝试使用以下链接上的种子下载盒文件: http : //opalang.org/Opa%20vagrant%20box.torrent

Once the box file is downloaded, issue the following commands : 下载包装盒文件后,发出以下命令:

vagrant box add opa-box file:///your_path_to_downloaded_file/opa.box
vagrant init opa-box
vagrant up
vagrant ssh

This works on my machine. 这适用于我的机器。

It's because the link leads to a redirect page to Google Drive. 这是因为该链接导致指向Google云端硬盘的重定向页面。 Bsdtar cannot open the archive because it's an HTML file. Bsdtar无法打开存档,因为它是一个HTML文件。 You can download it and add it using imikael21's instructions. 您可以下载并按照imikael21的说明进行添加。

Here's the link it leads to: https://drive.google.com/uc?export=download&id=0B1UEOBxsn2GiN3ZpbFdMek1FNjQ 这是它指向的链接: https : //drive.google.com/uc?export=download&id=0B1UEOBxsn2GiN3ZpbFdMek1FNjQ

The attempted link: https://vagrantcloud.com/mlstate/opa/version/1/provider/virtualbox.box 尝试的链接: https : //vagrantcloud.com/mlstate/opa/version/1/provider/virtualbox.box

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM