问题描述
我是Julia的软件包管理员的新手,我在安装GLPK和LinProgGLPK时遇到问题.
我已经运行了Pkg.Init()
,并且已经使用Pkg.add("Curl")
成功安装了Curl.但是,当我尝试安装GLPK或LinProgGLPK(使用Pkg.add("GLPK")
和Pkg.add("LinProgGLPK"))
时),出现以下消息:
I am new to Julia's package manager, and I am having trouble installing GLPK and LinProgGLPK.
I have already run Pkg.Init()
and have successfully installed Curl using Pkg.add("Curl")
. However, when I try to install GLPK or LinProgGLPK (using Pkg.add("GLPK")
and Pkg.add("LinProgGLPK"))
, I get the following message:
MESSAGE: Installing BinDeps v0.0.0
ERROR: Path BinDeps already exists! Please remove to allow installation.
in _resolve at pkg.jl:345
in anonymous at no file:163
in cd at file.jl:26
in cd_pkgdir at pkg.jl:42
in add at pkg.jl:143
in add at pkg.jl:175
对于依赖BinDeps的其他软件包(包括Winston),我似乎也得到了相同的消息.
I seem to get the same message for other packages that are dependent on BinDeps (including Winston).
我尝试调用Pkg.rm("BinDeps")
,Pkg.add("BinDeps")
,Pkg.update()
和Pkg.resolve()
,然后返回尝试添加GLPK,但该消息仍然存在.我还输入了~/.julia
来删除BinDeps文件夹,但是那也不起作用.我想念什么?
I have tried calling Pkg.rm("BinDeps")
, Pkg.add("BinDeps")
, Pkg.update()
, and Pkg.resolve()
, and then returned to trying to add GLPK, but the same message persists. I have also entered ~/.julia
to remove the BinDeps folder, but that did not work either. What am I missing?
P.S.我正在Linux Ubuntu中运行julia.
P.S. I am running julia in Linux Ubuntu.
推荐答案
老实说,当发生问题时,最好只是擦除〜/.julia并重新添加软件包.
Honestly, when something gets screwed up, it's best just to wipe ~/.julia and re-add the packages.
只需确保您备份了本地更改!
Just make sure you back up your local changes!
这篇关于朱莉娅:添加软件包的问题(BinDeps)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!