[julia-users] BinDeps / LoadError: Path /home/travis/.julia/v0.5/TALib/deps/src/ta-lib-0.4.0-src was not created successfully

2016-10-08 Thread Tony Kelman
Try using the unpacked_dir keyword argument to the Sources provider to tell it 
the github tarball has a different folder name that it extracts to than its 
default assumption.

[julia-users] BinDeps / LoadError: Path /home/travis/.julia/v0.5/TALib/deps/src/ta-lib-0.4.0-src was not created successfully

2016-10-08 Thread Femto Trader
Hello,


I'm new to BinDeps.
I use it in https://github.com/femtotrader/TALib.jl
to be able to download / build / install TA-Lib http://ta-lib.org/

I'm able to install this library using OS X and Homebrew without problem
see https://travis-ci.org/femtotrader/TALib.jl/jobs/166091755

but with Linux, I'm facing a strange issue.
see https://travis-ci.org/femtotrader/TALib.jl/jobs/166091757

It raises

LoadError: Path /home/travis/.julia/v0.5/TALib/deps/src/ta-lib-0.4.0-src 
was not created successfully (Tried to run `tar xzf 
/home/travis/.julia/v0.5/TALib/deps/downloads/ta-lib-0.4.0-src.tar.gz 
--directory=/home/travis/.julia/v0.5/TALib/deps/src` )
while loading /home/travis/.julia/v0.5/TALib/deps/build.jl, in expression 
starting on line 31


My deps/build.jl looks like


using BinDeps

@BinDeps.setup

libta_lib = library_dependency("libta_lib", aliases=["libta_lib", 
"libta_lib.so"])

if is_apple()

if Pkg.installed("Homebrew") === nothing
error("Homebrew package not installed, please run 
Pkg.add(\"Homebrew\")")
end
using Homebrew
provides(Homebrew.HB, "ta-lib", libta_lib, os = :Darwin )


elseif is_linux()

provides(Sources,
Dict(

URI("http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz;) => 
libta_lib
)
)
provides(BuildProcess, Autotools(libtarget = "libta_lib", 
configure_options=["--prefix=/usr"]), libta_lib, os = :Unix)

else
error("TALib.jl doesn't support this OS")
end

@BinDeps.install Dict(:libta_lib => :libta_lib)





I don't understand why it's failing.


Before following the "BinDeps way" I was installing this dependency using

wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -zxvf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr
make
sudo make install


Any help will be very nice.



PS: Issue opened on my side 
https://github.com/femtotrader/TALib.jl/issues/16