# Unable to add packages in v1.2

**URL:** <https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857>\
**Category:** General Usage\
**Created:** [August 22, 2019, 4:22pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857 "2019-08-22T16:22:04Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [August 22, 2019, 4:22pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/1 "2019-08-22T16:22:05Z")

</div>

Hi all,

I just installed v1.2 but am now unable to add packages. I’m getting the following error:

```julia
ERROR: could not load library "libgit2"
libcurl.so.4: ELF load command address/offset not properly aligned

```

I’m running Julia under Arch. What should I do?

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 22, 2019, 5:09pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/2 "2019-08-22T17:09:37Z")

</div>

Could’ve you download for the wrong number of bits, 32 vs 64?

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [August 22, 2019, 5:32pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/3 "2019-08-22T17:32:44Z")

</div>

It was a regular update via Arch’s package manager, but I checked, and it’s the right (64 bit) version. I uninstalled, re-installed, but no luck. Might I have more luck if I uninstall and then download from the website and build?

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 22, 2019, 5:39pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/4 "2019-08-22T17:39:14Z")

</div>

I haven’t used pacman’s Julia in a long time, but it makes sense that it should work.  
I use [JILL](https://github.com/abelsiqueira/jill) (disclaimer: package author), which downloads from the website and unpacks in good places. But you should uninstall first.

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [August 22, 2019, 6:09pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/5 "2019-08-22T18:09:37Z")

</div>

Thanks, this looks useful. However, when I run the script, I get the message: “The folder ‘/home/igor/.local/bin’ is not on your PATH”. In fact, in .local/ there is no folder called ‘bin’. I know it’s easy to create the folder, but I’m not a Linux specialist and I’m worried that I might mess things up. Or is it safe to do this and then run the script anew?

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [August 22, 2019, 6:26pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/6 "2019-08-22T18:26:51Z")

</div>

I created the folder, added it to my path, but still got an error message:

JILL - Julia Installer 4 Linux (and MacOS) - Light

Distributed under terms of the GPLv3 license.

This script will:

- Download latest stable Julia

- Create a link for julia

- Create a link for julia-VER

Download folder: /home/igor/packages/julias

Link folder: /home/igor/.local/bin

Download folder will be created if required

confirm:read:1: -p: no coprocess

Aborted

---

<div class="post-metadata">

**Author:** ![Igor\_Douven](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/igor_douven/32/8433_2.png) [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Post date:** [August 22, 2019, 6:41pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/7 "2019-08-22T18:41:40Z")

</div>

I ended up downloading the binaries and now everything is working fine.

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 22, 2019, 7:04pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/8 "2019-08-22T19:04:32Z")

</div>

Sorry about that. I think it’s related to zsh. Possibly running `bash jill.sh` could work. Glad to hear it’s working now. Thanks for trying.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 22, 2019, 8:15pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/9 "2019-08-22T20:15:22Z")

</div>

If you use [bashisms](https://mywiki.wooledge.org/Bashism) in your script, you’re better off specifying `/bin/bash` in the shebang line, rather than assuming that `/bin/sh` points to bash. In Debian-based systems, `/bin/sh` points to a very simple shell called Dash by default and your script would fail because you define functions with the `function` keyword.

---

<div class="post-metadata">

**Author:** ![abelsiqueira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abelsiqueira/32/47269_2.png) [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Post date:** [August 22, 2019, 9:02pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/10 "2019-08-22T21:02:49Z")

</div>

Thanks, I’ll do that.

---

<div class="post-metadata">

**Author:** ![RJDennis](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@RJDennis](https://discourse.julialang.org/u/RJDennis)\
**Post date:** [August 23, 2019, 11:59am UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/11 "2019-08-23T11:59:00Z")

</div>

Has there been a change between v1.1 and v1.2 that affects the build process? In v1.2 when I try to use a package I get the error “C:\*\*\*\*\*\*\*\*\*.julia\packages\SpecialFunctions\fvheQ\deps\usr\bin\libopenspecfun.dll cannot be opened, Please re-run Pkg.build(“SpecialFunctions”), and restart Julia.” Using the package manager to build(“SpecialFunctions”) I get “Error: Error building `SpecialFunctions`:  
│ ┌ Warning: On Windows, creating file symlinks requires Administrator privileges”. This second error does not occur with Julia v1.1.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [August 23, 2019, 12:09pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/12 "2019-08-23T12:09:24Z")

</div>

> [@RJDennis](#):
>
> Pkg.build(“SpecialFunctions”),

Try that.

---

<div class="post-metadata">

**Author:** ![RJDennis](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@RJDennis](https://discourse.julialang.org/u/RJDennis)\
**Post date:** [August 23, 2019, 12:15pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/13 "2019-08-23T12:15:52Z")

</div>

Thanks for the reply.

That is exactly what I did (without the comma) and it gave the error regarding administrator rights.

---

<div class="post-metadata">

**Author:** ![RJDennis](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@RJDennis](https://discourse.julialang.org/u/RJDennis)\
**Post date:** [August 23, 2019, 12:23pm UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/14 "2019-08-23T12:23:49Z")

</div>

running

`Pkg.build("SpecialFunctions")`

multiple times gives variable results. Sometimes it gives me the error regarding administrator priviledges and other times it returns “none”. When the latter occurs the module will run.

---

<div class="post-metadata">

**Author:** ![blegat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blegat/32/217090_2.png) [@blegat](https://discourse.julialang.org/u/blegat)\
**Post date:** [August 25, 2019, 11:53am UTC](https://discourse.julialang.org/t/unable-to-add-packages-in-v1-2/27857/15 "2019-08-25T11:53:33Z")

</div>

This is a bug in the julia ArchLinux package. It was reported to [the Arch package](https://bugs.archlinux.org/index.php?do=details&task_id=63536). You can click on (Add vote) if you are affected.
