我正在尝试创建新的Genie应用程序,如下所示:
julia> Genie.newapp("MyGenieApp")但是,得到以下错误:
[ Info: Done! New app created at /root/MyGenieApp
[ Info: Changing active directory to /root/MyGenieApp
ERROR: UndefVarError: LibGit2 not defined
Stacktrace:
[1] pkgproject(::Pkg.Types.Context, ::String, ::String) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:482
[2] (::Genie.Generator.var"#35#36")(::String) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:461
[3] mktempdir(::Genie.Generator.var"#35#36", ::String; prefix::String) at ./file.jl:682
[4] mktempdir at ./file.jl:680 [inlined] (repeats 2 times)
[5] generate_project(::String) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:458
[6] post_create(::String, ::String; autostart::Bool, testmode::Bool, dbsupport::Bool) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:669
[7] newapp(::String; autostart::Bool, fullstack::Bool, dbsupport::Bool, mvcsupport::Bool, testmode::Bool) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:657
[8] newapp(::String) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Genie/Uav0c/src/Generator.jl:634
[9] top-level scope at REPL[34]:1
[10] eval(::Module, ::Any) at ./boot.jl:331
[11] eval_user_input(::Any, ::REPL.REPLBackend) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
[12] run_backend(::REPL.REPLBackend) at /opt/julia/julia-1.4.1/share/julia/stdlib/v1.4/packages/Revise/OgnOk/src/packagedef.jl:1233
[13] top-level scope at REPL[5]:0请指导我创建新的Genie应用程序。
发布于 2021-08-22 14:11:10
感谢您的报告,这是一个错误,我能够重新生成它:https://github.com/GenieFramework/Genie.jl/issues/402
我相信这是Julia 1.4.x和Genie的问题。我能够在Julia 1.6.x中实现这一点。你可以在这里下载一个新的Julia版本:https://julialang.org/downloads/,它可以解决这个问题。
发布于 2021-10-24 17:05:02
安装Julia 1.6后,您可以将Genie更新到v.3.3.0并使用以下命令创建应用程序
using Genie
Genie.newapp_mvc("Watch tonight", dbadapter= :SQLite)
""" DB adapter as mentioned is SQLite could pass MySQL and so on..."""或
Genie.newapp("MyGenieApp")正如logan在本期中提到的:Pkg did not have LibGit2 in Julia 1.4
https://stackoverflow.com/questions/68863298
复制相似问题