Hello, I am an experienced programmer, and want to try Julia (1.11.1).
For evaluation purposes, I wanted to start by installing two tools that I use regularly and know very well. Polars and DuckDB.
I found it very difficult to find information on how to install packages for Julia, and after trying with Pkg add in the Pkg REPL I get all kinds for errors.
I think this is the main or more frequent appearing error.
┌ Error: curl_easy_setopt: 4
l\utils.jl:50
I would really appreciate any help. Thanks a lot in advance.
Thanks a lot for you response.
I have installed multiple packages successfully, by entering the Pkg REPL with ] and doing add <PackageName>
But with add Polars I get the error I posted above.
When I tried the same on linux (WSL 2), I got the error
ERROR: The following package names could not be resolved:
* Polars (not found in project, manifest or registry)
Suggestions: Solaris Colors Polymers Pilates Poptart PolyChaos Monads Dolang Jolab Posets Folds Tonari Colab Losers Peaks
For example I just did successfully add BenchmarkTools on linux
Thank you so so much for your help.
When I tried in powershell, it didn’t work. Possibly it has to do
When I tried in VSCode on Windows, but connected to WSL 2. It worked.
So now I will be able to use it.
May I ask you two different questions? If you think it is more appropriate, I will open new topic under the category you will name.
First question is, how were you able to find this answer? In other words, what should I have done to find the solution myself.
The second question is, can you recommend any book(s), youtube video(s), or sites that offer good introductions to julia targeting already experienced developers (python, Rust, R)? There are a couple of good videos on youtube, but from simple data scientists that are not so good for my case.
Thanks a lot in advance
The error on windows is:
(@v1.11) pkg> add https://github.com/Pangoraw/Polars.jl
Cloning git-repo `https://github.com/Pangoraw/Polars.jl`
ERROR: failed to clone from https://github.com/Pangoraw/Polars.jl, error: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn't know how to configure to use a file or directory of certificate authority roots, but your environment specifies one via the SSL_CERT_FILE variable. If you believe your system's root certificates are safe to use, you can `export JULIA_SSL_CA_ROOTS_PATH=""` in your environment to use those instead.)
Well, Google (or your favourite seach engine) and the Julia Discourse are your friends . When I got the error message that Polars could not be found (in the registry), I just googled to get to the github page. Most of the time you would find installation instructions, especially if it’s not just add <package>. In the absence of this I checked the Issues, where there indeed was one about registration. Now, I remembered that you could directly install packages from github, but if you wouldn’t, the first Google result for “Julia install package from github” is
which is helpful.
For DuckDB I just searched for something along the lines of “precompile DuckDB” on the Julia Discourse, resulting in the topic I linked to. Again, I was already aware of the Pkg syntax to install a specific version, but that’s a quick Google search away. If I remember correctly
(@v1.11) pkg> add DuckDB@1.0
didn’t work, as it would still install a newer version of the _jll file, as evidenced by the output in the REPL, so I also forced the version here.
I think it would be best to create a new topic. Well, first look around a bit on the Discourse to see if no similar question has been asked in the past. If not, I think posting under New to Julia is fine.
I’m haven’t encountered this error before, but you could try the solution proposed here: