Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manual build instructions #69

Merged
merged 2 commits into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,41 @@
[![][docs-stable-img]][docs-stable-url]
[![][docs-latest-img]][docs-latest-url]

Julia wrapper for the [arpack](https://github.com/opencollab/arpack-ng/) library
designed to solve large scale eigenvalue problems.

## Installation

You can install Arpack.jl through the Julia package manager:
```julia
julia> Pkg.add("Arpack")
```

Arpack.jl will use [BinaryProvider.jl](https://github.com/JuliaPackaging/BinaryProvider.jl)
to automatically install the Arpack binaries.

## Custom Installation

If you get
```
ERROR: LoadError: LibraryProduct(nothing, ["libarpack"], :libarpack, "Prefix(~/.julia/packages/Arpack/cu5By/deps/usr)") is not satisfied, cannot generate deps.jl!
```
when building Arpack, it may be because your Julia installation uses your system
blas for which the symbols are not suffixed by `_64_` while this is required by
the compiled binaries provided by [BinaryProvider.jl](https://github.com/JuliaPackaging/BinaryProvider.jl).
This is notably the case on [ArchLinux](https://www.archlinux.org/).
In these case, compile binaries that do not require this suffix as follows.
Download the source of the [v3.5.0 of arpack-ng](https://github.com/opencollab/arpack-ng/releases/tag/3.5.0),
extract it in some `<directory>`, build it and do (note that you may need to
update `cu6By` to match the one printed in the error message printed above).
```
$ cp <directory>/arpack-ng-3.5.0/SRC/.libs/libarpack.so.2.0.0 ~/.julia/packages/Arpack/cu5By/deps/usr/lib/
$ julia -e 'import Pkg; Pkg.build("Arpack")'
Building Arpack → `~/.julia/packages/Arpack/UiiMc/deps/build.log`
```

[docs-latest-img]: https://img.shields.io/badge/docs-latest-blue.svg
[docs-latest-url]: http://JuliaLinearAlgebra.github.io/Arpack.jl/latest/

[docs-stable-img]: https://img.shields.io/badge/docs-stable-blue.svg
[docs-stable-url]: http://JuliaLinearAlgebra.github.io/Arpack.jl/stable/
[docs-stable-url]: http://JuliaLinearAlgebra.github.io/Arpack.jl/stable/