julia:系统映像文件"sys.ji"未找到 [英] julia: system image file "sys.ji" not found

查看:77
本文介绍了julia:系统映像文件"sys.ji"未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用IDE Netbeans在Linux(红色帽子7)下对c ++项目进行编码.由于需要使用一些数学函数,因此我尝试将julia语言嵌入到我的c ++项目中.

这是我所做的:

此处(我选择此:通用Linux二进制文件)

下载Julia.

设置项目属性:build-> C ++ Complier-> Include Directories,添加Julia的include,如下所示:../myjulia/include/julia

添加库:打开终端并输入命令行:sudo ln -s ../myjulia/lib/julia/libjulia.so/usr/lib/libjulia.so

现在,如果我运行我的项目,我将收到此错误:找不到系统映像文件"../myproject/dist/Debug/GNU-Linux-x86/../lib/julia/sys.ji"

我检查了这个文件:../myjulia/lib/julia,在这个文件中,所有的lib文件(libjulia.so等)和一个名为"sys.ji"的文件.

解决方案

在Windows计算机上安装Julia v0.3.10之后,我遇到了这个问题,并认为我会发布它,以防它可以帮助其他人.

当我运行julia.exe时,它给了我上面列出的错误消息.

问题:

我创建了一个名为JULIA_HOME的系统环境变量,并将其指向Julia的安装目录.然后,我在PATH中添加了%JULIA_HOME%\bin.

解决方案:

我将JULIA_HOME指向了Julia安装目录下的 \ bin 目录.然后,我在PATH

中添加了%JULIA_HOME%

I am using the IDE Netbeans to code a project c++ under Linux(red hat 7). As I need to use some math functions, I try to embed the julia language into my c++ project.

Here is what I have done:

Download the Julia from here (I choose this: Generic Linux binaries)

Set project properties: build-->C++ Complier-->Include Directories, add the include of Julia, something like this: ../myjulia/include/julia

Add the libraries: open a terminal and type the command line: sudo ln -s ../myjulia/lib/julia/libjulia.so /usr/lib/libjulia.so

Now if I run my project, I will get this error: System image file "../myproject/dist/Debug/GNU-Linux-x86/../lib/julia/sys.ji" not found

I hve checked this file: ../myjulia/lib/julia, in this file, there are all of the lib files (libjulia.so etc) and a file named "sys.ji".

解决方案

I ran into this issue after installing Julia v0.3.10 on a Windows machine and thought I'd post it in case it can help someone else.

When I ran julia.exe it gave me the error message listed above.

Problem:

I had created a system environment variable called JULIA_HOME and pointed it to the directory where Julia was installed. Then, I added %JULIA_HOME%\bin to my PATH.

Solution:

I pointed JULIA_HOME to the \bin directory under the Julia install directory. Then, I added %JULIA_HOME% to my PATH

这篇关于julia:系统映像文件"sys.ji"未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆