-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Install Node-Julia #23
Comments
On OS/X, there are two things that influence what the include directory is. First if julia can be detected by finding it using the shell PATH, then that's used (you can try using Thus, this could result from not being able to detect the julia install directory. There is a script in the tools subdirectory of the node-julia install directory called
Also the compile options used by node-gyp will reveal the
|
This is likely the basis of the problem then as the install can not determine the location of julia.
what is the result of the command
Where do you have julia installed? As for your error above; strange about the circular dependency have you cloned node-julia and then npm install node-julia inside it? If that's the case instead simply do
or
Also if possible could you submit the relevant as text, screenshots are great for context, but they're not cut-pasteable and not searchable. |
Ok, though apparently node-gyp comes packaged with npm in such a way that it can be invoked automatically upon
However, I'm wondering at where you have julia installed. I don't think you can actually run it from the terminal because When julia can't be found via the PATH variable which is the case here then it falls back to searching through Applications, and if it's not there then will not be able to find it. There's an easy remedy for you, and a test I need to perform. Asuming it's installed in Applications, then try the following
and re-run npm install |
I had the same error as parth using julia 0.4.3 under OSX. Changing the path as suggested above worked thanks. |
Thank the path worked for me as well |
Hi, I love the idea of node integration with julia. I'm trying to install node-julia on CentOS 7 and encounter similar issues as above. I installed Julia successfully earlier. Need help here. Issues
any pointer? thanks Details...
More Details...
|
Hmm ok Centos. When it comes to Linux, the packaging can differ from Ubuntu to Centos, to whatever, but I think those are the main two for which specialized packaging exists. The trick is to identify where the Julia library is, which usually can be inferred from where Julia the binary is installed, but it looks like Centos is different. There is a script I wrote to assist with this and it located in the Julia share directory, where that gets installed by yum I'm not sure. But if you can find it, run it with the --ldflags optiion. Here's how it's installed on my machine for example (it will be different for you):
If that works for you, what I think I should do it copy that script wholesale into this project and then it will be guaranteed that so long as Julia is available from the command line, the right arguments to node-gyp will always be determinable. I believe that will fix accessing libjulia. However, I saw also that you want to use Julia 0.4 (makes sense), and also node 0.10 because of the use of Something like
followed up by |
I don't have any lucks after upgrading node.js to v0.12 using my Julia v0.4.3. I find my Julia path on my CentOS 7 under /usr/lib64/julia, and I add to my $PATH. These don't help. The error message suggests me to contact node-julia author. Could you help? Details below...
Upgrade NodeJS to v0.12 on CentOS
Install with yum installer:
Install node-gyp (dependency first):
verify $PATH includes Julia
then install node-julia:
|
Great info, much thanks for that. So switching to node 12 helped, because now nj-v11 is being used (
Changing the lines
to
Should resolve the -ljulia problem, but that's not the solution, it's just a simple hack if you can do that; it can serve as a workaround until I have a fix. |
can you attempt to install the latest from master
|
Thanks for feedback. It works for me now. Installation Procedures for node-julia on CentOS7 For the benefits of other developers, let me summarize the steps how I install and deploy node-julia successfully on CentOS 7:
Original file:
Changes made:
Please note that I did not change the second section (should I change (juliaBase)/lib/julia to (juliaBase/lib64/julia)
I tried 'npm install node-julia' but it does not work well in my earlier installation.
Create a node.js file called testme.js with the following contents:
Execute by "node testme.js". It should return
|
Hi, I'm trying to install node-Julia on an Ubuntu 16.04 server and run into similar problems to the above. Julia was installed successfully but node-Julia returns the following errors... Errors
Other info..
Thanks. |
I tried installing node-julia and i get this error message. Does anyone know how to fix this issue. I am running version 3.6 of npm and version 0.3.12 of Julia
The text was updated successfully, but these errors were encountered: