I have an older package that I would like to use (https://github.com/davidlizeng/LinearLeastSquares.jl), but when I try to install it using the Pkg I get this error.
(@v1.4) pkg> add LinearLeastSquares
Updating registry at `C:\Users\dadada\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: The following package names could not be resolved:
* LinearLeastSquares (not found in project, manifest or registry)
Is there any automatic way to generate the needed files and install it?
You can simply add it via the github link. Have a look at the Pkg docs.
Excerpt:
So far, we have referred only to registered packages. Pkg also supports working with unregistered packages. To add an unregistered package, specify a URL:
(v1.1) pkg> add https://github.com/JuliaLang/Example.jl
Use rm to remove this package by name:
(v1.1) pkg> rm Example
e.g. ] add https://github.com/davidlizeng/LinearLeastSquares.jl
2 Likes
Thanks for the reply. I tried that and it did not work, unfortunately.
(@v1.4) pkg> add https://github.com/davidlizeng/LinearLeastSquares.jl
Updating git-repo `https://github.com/davidlizeng/LinearLeastSquares.jl`
ERROR: could not find project file in package at https://github.com/davidlizeng/LinearLeastSquares.jl
It seems something related to the project.toml file that is missing.
Then maybe clone the repo via git and use it as a local package.
Opening an issue is very unlikely to help here since the last commit was 3 years ago and it might some time for the maintainer to get back to you.
1 Like
I don’t think that will work without a project file.
Adding one, however, is unlikely to be enough to make this package work in Julia 1.x, since it was written for Julia 0.6 and may require some updating to the code.
2 Likes