Skip to content

Commit

Permalink
Merge pull request #69 from blegat/bl/manual_build
Browse files Browse the repository at this point in the history
Add manual build instructions
  • Loading branch information
ViralBShah authored Dec 3, 2019
2 parents eb4ff8b + eb74095 commit 53e0427
Showing 1 changed file with 34 additions and 1 deletion.
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/

0 comments on commit 53e0427

Please sign in to comment.