HaxeFoundation / haxelib

The Haxe library manager
https://lib.haxe.org/
MIT License
173 stars 77 forks source link

Installing lime fails #187

Closed ibilon closed 9 years ago

ibilon commented 9 years ago

Using haxe-3.2.0-rc.2 linux 64 bits and its bundled haxelib installing lime fails.

$ haxelib install lime
Downloading lime-2,1,3.zip...
Download complete : 87961405 bytes in 18.9s (4539.1KB/s)
  Created project/
  Created project/common/
  Install project/common/Extension.cpp
  Install project/common/ExternalInterface.cpp
  Created project/include/
  Install project/include/Utils.h
  Install project/Build.xml
  Install Extension.hx
  Install haxelib.json
  Created dependencies/
  Created dependencies/android/
  Install dependencies/android/project.properties
  Install dependencies/android/build.xml
  Created dependencies/android/src/
  Created dependencies/android/src/org/
  Created dependencies/android/src/org/haxe/
  Created dependencies/android/src/org/haxe/extension/
  Install dependencies/android/src/org/haxe/extension/Extension.java
  Install dependencies/android/AndroidManifest.xml
  Install include.xml
  Current version is now 1.0.0
Done

and ends up like this:

$ haxelib list
unknown: [1.0.0]

Downloading the zip from the website and using haxelib local fails too, the zip is correct and manually extracting it works.

I installed actuate, box2d, HaxePunk, hxcpp, layout, openfl-samples, openfl and swf without any problems.

adamscott commented 9 years ago

Same here! On Mac OS 10.10 (Yosemite) x64.

delahee commented 9 years ago

I had the same issue because my lime directory was locked by my anti virus, no error spawned...

jgranick commented 9 years ago

This just happened to me as well. Is it because Lime includes a ".gitignore" file? Does it stop extracting when it hits a "." file, rather than skipping and continuing?

jgranick commented 9 years ago

Nevermind, this was fixed after I ran haxelib selfupdate

I wish haxelib were able to update during a "haxelib upgrade" like other libraries ;)

ibilon commented 9 years ago

I ran a selfupdate but it didn't fixed it.

haxelib:

#!/bin/sh
OLDCWD=`pwd`
cd /usr/lib/haxe/lib/haxelib_client/3,2,0-rc,2/src/
exec haxe -D haxelib_client=3.2.0-rc.2 --run tools.haxelib.Main -cwd $OLDCWD

but Haxe Library Manager 3.2.0-rc.1 - (c)2006-2015 Haxe Foundation

Was the string not updated or did my selfupdate didn't succeed?

jgranick commented 9 years ago

Actually, haxelib install lime failed like above, downloading manually from http://www.openfl.org/builds/lime and running haxelib local <name of zip> also failed. I ran haxelib selfupdate, then I used haxelib local again. I didn't actually test haxelib install again after the update

Simn commented 9 years ago

We should check this before release.

ibilon commented 9 years ago

Following @jgranick's idea I tried removing all files starting with a "." from the lime zip and then doing a haxelib local, it fixes the error.

back2dos commented 9 years ago

Fixed here (sorry, flipped the issue number): https://github.com/HaxeFoundation/haxelib/commit/68f25d97dc991516c02a2665081ba5cc0d2ae23e

Simn commented 9 years ago

Remind me to sync haxelib as soon as I start behaving like I'm about to package a Haxe release.

back2dos commented 9 years ago

Will do.

On Sun, Mar 22, 2015 at 1:24 PM, Simon Krajewski notifications@github.com wrote:

Remind me to sync haxelib as soon as I start behaving like I'm about to package a Haxe release.

— Reply to this email directly or view it on GitHub https://github.com/HaxeFoundation/haxelib/issues/187#issuecomment-84597970 .

c0ffeeartc commented 9 years ago

same as first post, tested on multiple versions(2.3.3, 2.3.0, 2.2.1). haxelib 3.2.0-rc.1. haxelib install lime, haxelib local lime-2.3.2.zip result to unknown [1.0.0] package

c0ffeeartc commented 9 years ago

Solved it. Problem was haxelib selfupdate couldn't update as in https://github.com/HaxeFoundation/haxelib/issues/189

$chmod 777 /usr/bin/haxelib
$cp /usr/bin/haxelib ~/
$cd ~
$./haxelib selfupdate

and lime installed fine