forio / julia-studio

An IDE for the Julia Language
forio.com/products/julia-studio
GNU General Public License v3.0
223 stars 48 forks source link

HTTPC.get on Windows 8.1 with Julia Studio 0.4.4 #229

Open peterquirk opened 10 years ago

peterquirk commented 10 years ago

For my very first experiment with Julia, I'm trying to access a REST endpoint with this tiny piece of code: using HTTPClient.HTTPC using JSON using Base.Test statsUrl = "http://192.168.8.73:8888/api/v1/stats/storage" println("About to access URL : $statsUrl") r=HTTPC.get(statsUrl) @test r.http_code == 200 println("Test 1 passed, http_code : " * string(r.http_code))

The program outputs: About to access URL : http://192.168.8.73:8888/api/v1/stats/storage LoadError("C:/Users/pquirk/Documents/julia/testHTTP.jl",8,ErrorException("error compiling get: error compiling setup_easy_handle: could not load module c:\users\pquirk\Documents\julia\WinRPM\deps\usr\x86_64-w64-mingw32\sys-root\mingw\bin\libcurl-4: The specified module could not be found.\r\n"))

I have installed HTTPClient, JSON, LibCurl, amongst other things. What do I have to do to configure my environment correctly?