[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello again, I am experiencing the following difficulty. So I have the above mentioned header and cpp files that define the class ArrayMaker on top of that I wrote a small main connected to this class that simply excecute its function: main.cpp: #include ArrayMaker.h #include iostream using namespace std; int main(int argc, char ** argv) { ArrayMaker* FI_CSP=new ArrayMaker(); int a = 7; float b = 4; double z; z = FI_CSP-ArrayMak(a,b); coutendlTest = z; return 1; } Now I created for Arraymaker.cpp, Arraymaker.h and main.cpp a shared library so that I can link it with a julia file. So on this point I do have a very noob question, but I couldn't work it out from the examples of cxx in its webpage. Say I have done the connection with the shared library properly inside a julia file to link with the above class and main. That looks as the previous one like this: using Cxx # Importing shared library and header file const path_to_lib = /home/kostav/Documents/Project/julia/cle addHeaderDir(path_to_lib, kind=C_System) Libdl.dlopen(path_to_lib * /test.so, Libdl.RTLD_GLOBAL) cxxinclude(ArrayMaker.h) So my really noob question is how is the proper syntaxis so that in this julia file I can call and run the above mentioned main.cpp file?
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Ok, this did solve my problem. Now I will proceed with trying to connect a big c++ project with julia and see what happens there, in the very optimistic case where I proceed without any problems I will let you know just for reference, otherwise I will return with the new errors and mistakes I receive. Thanks a lot for all the help and suggestions so far! On Thursday, July 30, 2015 at 11:47:27 PM UTC+2, Jeff Waller wrote: Specifically I think this will not work because of the following: double ArrayMaker::ArrayMak(int iNum, float fNum) { jl_init(JULIA_INIT_DIR); jl_atexit_hook(); return sol; } } What this is doing it starting up a 2nd julia engine inside of the original julia engine, and that can only work if julia has no globals that must only be initialized once and all mutual exclusive sections protected by mutex, (i.e. thread safe), and currently it is not. In other words you're going beyond the question can Julia be embedded in C++ as well as can C++ be embedded in Julia simultaneously; answer is yes. You're asking can Julia be embedded within itself, and I think the answer is no. But from what you're describing as the problem you're attempting to solve, you don't really to accomplish Julia inside Julia. You just need to call C++ from Julia. What happens if you just simply leave out the calls to jl_init and jl_atexit_hook?
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello again, After following the above mentioned instructions of Jeff managed to make Cxx working properly in the julia version installed via (make install), yet again the original problem persists. Just to remind you: I have the following c++ class: 1) cpp.file: #include ArrayMaker.h #include iostream using namespace std; ArrayMaker::ArrayMaker() { // TODO Auto-generated constructor stub } ArrayMaker::~ArrayMaker() { // TODO Auto-generated destructor stub } double ArrayMaker::ArrayMak(int iNum, float fNum) { jl_init(JULIA_INIT_DIR); jl_load(/home/kostav/.julia/v0.4/loleee/src/loleee.jl); jl_value_t * mod = (jl_value_t*)jl_eval_string(loleee); jl_function_t * func = jl_get_function((jl_module_t*)mod,funior); jl_value_t * argument = jl_box_float64(2.0); jl_value_t * argument2 = jl_box_float64(3.0); jl_value_t * ret = jl_call2(func, argument, argument2); sol = jl_unbox_float64(ret); jl_atexit_hook(); return sol; } } 2) header file: #ifndef ARRAYMAKER_H #define ARRAYMAKER_H #include julia.h class ArrayMaker { public: ArrayMaker(); virtual ~ArrayMaker(); double ArrayMak(int, float); }; #endif Which are called isnide this small julia file: using Cxx # Importing shared library and header file const path_to_lib = /home/kostav/Documents/Project/julia/cle addHeaderDir(path_to_lib, kind=C_System) Libdl.dlopen(path_to_lib * /test.so, Libdl.RTLD_GLOBAL) cxxinclude(ArrayMaker.h) maker = @cxxnew ArrayMaker() a = @cxx maker-ArrayMak(5, 2.0) println(return value is: , a) As described above what I am trying is to call the c++ function ArrayMak from julia file, where inside this function I call an other julia function (called name funior) that just receives two numbers as arguments and returns their sum. More or less want to verify that I can have the following process: Julia file - Calling C++ classes - calling inside them other julia functions - returning arguments from the C++ classes to the original julia file. So when I run the julia file everything works until the moment that the c++ function needs to return the argument to julia file, I have checked and confirmed that until that point everything works proprely: 1) C++ function ArrayMak is called 2) Function funior is receiving the arguments properly and returns to the variable sol the sum of the two arguments But when the value of sol needs to be returned to the julia function everythins stucks. Judging from the example in the cxx web-site in order to return arguments from c++ functions to julia you don't need to do anything complicated or different from what is shown here: arr = @cxx maker-fillArr() (where fillArr is supposed to return an array) So, I am not sure what is going wrong here... On Wednesday, July 22, 2015 at 9:33:00 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Any help/further suggestions please? On Tuesday, July 21, 2015 at 3:27:10 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Hello again, Unfortunately and let me apologize in advance I still find myself confused on how to make things work properly. Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches. /usr/local/julia/lib bizarro% ls -l total 16 drwxr-xr-x 4 jeffw staff 136 Jul 18 18:26 clang lrwxr-xr-x 1 root staff10 Jul 19 03:16 include - ../include drwxr-xr-x 49 jeffw staff 1666 Jul 18 20:11 julia lrwxr-xr-x 1 root staff 1 Jul 19 03:16 lib - . If I get this right does it mean that for all the files that are included in the list * DirectoryLayout* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayout I need to create a soft link to link them with the directory /usr/local/julia/lib (which doesn't exist in my system)? Aslo regarding the instructions of part *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx where you present the files that need to be cp to the directory julia-f428392003 in my system I face the following problems: 1) The image files (sys.ji, sys.dylib,sys-debug.dylib) don't exist anywhere in my system 2) The folder llvm-svn (in the source julia directory) has completely different structure in my system, In my julia (source code) folder there are two folders with the name llvm-svn the one has a structure that you can look in the attach picture called name (llvmsn), while the second one is located in the path /home/kostav/julia/usr-staging/llvm-svn and has a single folder named build_Release+Asserts. All in all I am confused on how to follow your instructions (for which I do really appreciate the effort you put to provide me with). Is what I have to do: 1) Try to copy paste the folders as presented in *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Any help/further suggestions please? On Tuesday, July 21, 2015 at 3:27:10 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Hello again, Unfortunately and let me apologize in advance I still find myself confused on how to make things work properly. Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches. /usr/local/julia/lib bizarro% ls -l total 16 drwxr-xr-x 4 jeffw staff 136 Jul 18 18:26 clang lrwxr-xr-x 1 root staff10 Jul 19 03:16 include - ../include drwxr-xr-x 49 jeffw staff 1666 Jul 18 20:11 julia lrwxr-xr-x 1 root staff 1 Jul 19 03:16 lib - . If I get this right does it mean that for all the files that are included in the list * DirectoryLayout* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayout I need to create a soft link to link them with the directory /usr/local/julia/lib (which doesn't exist in my system)? Aslo regarding the instructions of part *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx where you present the files that need to be cp to the directory julia-f428392003 in my system I face the following problems: 1) The image files (sys.ji, sys.dylib,sys-debug.dylib) don't exist anywhere in my system 2) The folder llvm-svn (in the source julia directory) has completely different structure in my system, In my julia (source code) folder there are two folders with the name llvm-svn the one has a structure that you can look in the attach picture called name (llvmsn), while the second one is located in the path /home/kostav/julia/usr-staging/llvm-svn and has a single folder named build_Release+Asserts. All in all I am confused on how to follow your instructions (for which I do really appreciate the effort you put to provide me with). Is what I have to do: 1) Try to copy paste the folders as presented in *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx ? 2) Create links for all the files listed * DirectoryLayout * https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayouttowards the folder /usr/local/julia/lib? On Sunday, July 19, 2015 at 10:44:07 PM UTC+2, Jeff Waller wrote: Symbolic links to link which files though? Sorry if the questions I raise are already answered by the git, I just failed to understand it properly so that's why I come back with these questions now. I've added a listing of the entire directory structure https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayout Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches. /usr/local/julia/lib bizarro% ls -l total 16 drwxr-xr-x 4 jeffw staff 136 Jul 18 18:26 clang lrwxr-xr-x 1 root staff10 Jul 19 03:16 include - ../include drwxr-xr-x 49 jeffw staff 1666 Jul 18 20:11 julia lrwxr-xr-x 1 root staff 1 Jul 19 03:16 lib - .
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello again, Unfortunately and let me apologize in advance I still find myself confused on how to make things work properly. Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches. /usr/local/julia/lib bizarro% ls -l total 16 drwxr-xr-x 4 jeffw staff 136 Jul 18 18:26 clang lrwxr-xr-x 1 root staff10 Jul 19 03:16 include - ../include drwxr-xr-x 49 jeffw staff 1666 Jul 18 20:11 julia lrwxr-xr-x 1 root staff 1 Jul 19 03:16 lib - . If I get this right does it mean that for all the files that are included in the list * DirectoryLayout* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayout I need to create a soft link to link them with the directory /usr/local/julia/lib (which doesn't exist in my system)? Aslo regarding the instructions of part *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx where you present the files that need to be cp to the directory julia-f428392003 in my system I face the following problems: 1) The image files (sys.ji, sys.dylib,sys-debug.dylib) don't exist anywhere in my system 2) The folder llvm-svn (in the source julia directory) has completely different structure in my system, In my julia (source code) folder there are two folders with the name llvm-svn the one has a structure that you can look in the attach picture called name (llvmsn), while the second one is located in the path /home/kostav/julia/usr-staging/llvm-svn and has a single folder named build_Release+Asserts. All in all I am confused on how to follow your instructions (for which I do really appreciate the effort you put to provide me with). Is what I have to do: 1) Try to copy paste the folders as presented in *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx ? 2) Create links for all the files listed * DirectoryLayout * https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayouttowards the folder /usr/local/julia/lib? On Sunday, July 19, 2015 at 10:44:07 PM UTC+2, Jeff Waller wrote: Symbolic links to link which files though? Sorry if the questions I raise are already answered by the git, I just failed to understand it properly so that's why I come back with these questions now. I've added a listing of the entire directory structure https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-directorylayout Here are the symbolic links. I believe with some simple changes to Cxx, the need for these will disappear, but for now there's where it searches. /usr/local/julia/lib bizarro% ls -l total 16 drwxr-xr-x 4 jeffw staff 136 Jul 18 18:26 clang lrwxr-xr-x 1 root staff10 Jul 19 03:16 include - ../include drwxr-xr-x 49 jeffw staff 1666 Jul 18 20:11 julia lrwxr-xr-x 1 root staff 1 Jul 19 03:16 lib - .
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello, Once again I really appreciate all the effort you put and the help you provide. I assume that since you made things work properly now we do havea working solution. Yet again as I am not really good with programming in general sth things I still unfortunately need to ask on how to follow your directions. So, Step 1. Build and run make install Step 2. While still in the top level source directory, install Cxx as per the Cxx webpage Step 3. Take the installed directory structure and put it in an installed location. These three steps I have already done, I have compiled the source code and installed Cxx accordingly for the source code and I also have copied the installed directory (the one with the big number that is created after make install) in a seperate file from which I run julia. Step 4. There are additional include files that Cxx needs access to after it has built whenever c++ source needs to be compiled, they can be found in the following directories relative to the source tree root. usr/include/{clang,llvm,llvm-c} usr/lib/clang/ Cxx attempts to access the files in these directories when it gets imported, and although addIncludeDir is supposed to help here, I could not make it work like that, so i ended up copying all of this to the installed directory (see the gist). Here I am a bit confused what to do. I did cp the abve mentioned directories: cp -a /usr/lib/clang /home/kostav/Julian/julia-f428392003/lib cp -a /usr/include/{clang,llvm-3.6,llvm-c-3.6} /home/kostav/Julian/julia-f428392003/include But then in the gist I see you do cp a bunch of other files which I am not sure I do have them all anyway. Does this mean that instead of copying the above mentioned directories I included I need to copy the spe- cific files you point out in the first session of the git ( i.e. *BuildJuliaLLVMforCXX* https://gist.github.com/waTeim/ec622a0630f220e6b3c3#file-buildjuliallvmforcxx )? Step 5. In addition for embedding the relative paths are off, so a couple of symbolic links need to be added. Symbolic links to link which files though? Sorry if the questions I raise are already answered by the git, I just failed to understand it properly so that's why I come back with these questions now. )
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello again and thanks a lot for the suggestions. Thing is, I went back to the source version of Julia where Cxx is already built and runs properly, so there wasn't much for me to do, I run in terminal also the command of: addHeaderDir(/home/kostav/julia/src/) Then proceeded again with make install and run the version of julia from this folder but still not being able to use or install Cxx. So, maybe I didn't understand properly what you were suggesting for me to do in the source version of Julia... Or maybe there is sth else I should try..? On Friday, July 17, 2015 at 10:31:16 PM UTC+2, Jeff Waller wrote: On Friday, July 17, 2015 at 1:44:41 PM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, Just to be sure that I am understanding correctly what your proposal. You suggest I should: 1) Completely uninstall Julia 2) Recompile the source code (i.e. run make) heh no need for 1,2, the current source tree build should be fine. 3) Then try using julia from the source code build cxx package Yea like Isaiah says, originally this built by pointing to the source tree, it's still there. 4) Then perform the make install and link the version of julia of the decaxemical folder with my system And hopefully this will work? The tricky part. There's a reasonable change it will just work, and likewise there's a good chance it won't and it all revolves around what Cxx expects from Julia and does Julia make install copy whatever that is into the install directory. I am just asking to be sure before I proceed with any attempt, as the make command is really time con- suming, so want first to be sure that I am doing what you are actually suggesting (: On Friday, July 17, 2015 at 6:24:21 PM UTC+2, Jeff Waller wrote: Yea I think what you're seeing is that Cxx needs to use the source tree for example Make.inc only exists in the source tree while embedding assumes the installed tree. How to reconcile this the best way I'm not sure yet. I myself found Cxx interesting enough to try, but the build failed a couple of times and I haven't had a chance to pick it back up. But here's what I assume could be done. Don't attempt to do them at the same time but first Cxx (using source) and then embed second (using install). Build Cxx following the Cxx instructions. Then install (this is the tricky part and only something I can guess at right now). You might find that a number of things necessary for Cxx to function are not installed by default, or it will all go smoothly. I think though that Cxx is going to need clang in some way and that is definitely NOT installed by default. I'm not sure how much Julia must/can provide and how much the Cxx package can/must provide. Then build embed against installed stuff. Report errors, they may require multiple iterations.
[julia-users] Re: Errors while trying to use cxx and embed Julia together
So, in case it will be of any help to you here is the exact message I receive: julia Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /home/kostav/Julian/julia-f428392003/bin BuildBootstrap.Makefile:2: /home/kostav/Julian/julia-f428392003/bin/../../deps/Versions.make: No such file or directory BuildBootstrap.Makefile:3: /home/kostav/Julian/julia-f428392003/bin/../../Make.inc: No such file or directory make: *** No rule to make target '/home/kostav/Julian/julia-f428392003/bin/../../Make.inc'. Stop. =[ ERROR: Cxx ]= LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/home/kostav/Julian/julia-f428392003/bin`, ProcessExited(2)) [2] while loading /home/kostav/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16 [ BUILD ERRORS ] WARNING: Cxx had build errors. - packages with build errors remain installed in /home/kostav/.julia/v0.4 - build the package(s) and all dependencies with `Pkg.build(Cxx)` - build a single package by running its `deps/build.jl` script On Saturday, July 18, 2015 at 11:35:32 PM UTC+2, Jeff Waller wrote: On Saturday, July 18, 2015 at 5:24:33 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello again and thanks a lot for the suggestions. Thing is, I went back to the source version of Julia where Cxx is already built and runs properly, so there wasn't much for me to do, I run in terminal also the command of: addHeaderDir(/home/kostav/julia/src/) Then proceeded again with make install and run the version of julia from this folder but still not being able to use or install Cxx. So, maybe I didn't understand properly what you were suggesting for me to do in the source version of Julia... Or maybe there is sth else I should try..? Well it's guesswork on my part, the exact failure would be helpful. However, I'm going to try to do this as well. Not exactly the thing you're doing but related, you're more familiar with Cxx, and I'm more familiar with embed, let's see what can be done.
[julia-users] Re: Errors while trying to use cxx and embed Julia together
Hello, Just to be sure that I am understanding correctly what your proposal. You suggest I should: 1) Completely uninstall Julia 2) Recompile the source code (i.e. run make) 3) Then try using julia from the source code build cxx package 4) Then perform the make install and link the version of julia of the decaxemical folder with my system And hopefully this will work? I am just asking to be sure before I proceed with any attempt, as the make command is really time con- suming, so want first to be sure that I am doing what you are actually suggesting (: On Friday, July 17, 2015 at 6:24:21 PM UTC+2, Jeff Waller wrote: Yea I think what you're seeing is that Cxx needs to use the source tree for example Make.inc only exists in the source tree while embedding assumes the installed tree. How to reconcile this the best way I'm not sure yet. I myself found Cxx interesting enough to try, but the build failed a couple of times and I haven't had a chance to pick it back up. But here's what I assume could be done. Don't attempt to do them at the same time but first Cxx (using source) and then embed second (using install). Build Cxx following the Cxx instructions. Then install (this is the tricky part and only something I can guess at right now). You might find that a number of things necessary for Cxx to function are not installed by default, or it will all go smoothly. I think though that Cxx is going to need clang in some way and that is definitely NOT installed by default. I'm not sure how much Julia must/can provide and how much the Cxx package can/must provide. Then build embed against installed stuff. Report errors, they may require multiple iterations.
Re: [julia-users] Re: Embedding Julia with C++
Hello, Sorry for the delay in my answer. *Could you run /home/kostav/julia/contrib/julia-config.jl --ldlibs and tell me what it returns?*It returns: -Wl,-rpath,/home/kostav/julia/usr/lib -ljulia ***Did you do a make install of Julia itself and are running out of that* *installed directory or are you running out of where it compiled or possibly* *simply copied the directories? That script assumes the former and I think* *maybe you're doing the latter.* I downloaded the source code in folder (home/julia) and run inside this file make and make install of Julia inside. ***/home/kostav/julia/bin/julia /home/kostav/julia/contrib/*julia-config.jl --ldlibs I actually don't have any bin folder inside my julia folder, so I can't do any of the suggested modifications. What could I do different in this case? On Monday, July 13, 2015 at 7:55:10 PM UTC+2, Jeff Waller wrote: On Monday, July 13, 2015 at 11:36:34 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Ok, my current Julia version (that I installed via running the source code) is: *Version 0.4.0-dev+5841 (2015-07-07 14:58 UTC)*So, what should I do different so that -I flag gets the proper value? Could you run /home/kostav/julia/contrib/julia-config.jl --ldlibs and tell me what it returns? Did you do a make install of Julia itself and are running out of that installed directory or are you running out of where it compiled or possibly simply copied the directories? That script assumes the former and I think maybe you're doing the latter. If so you can still use it, but you have to specify which julia so something like this /home/kostav/julia/bin/julia /home/kostav/julia/contrib/julia-config.jl --ldlibs is there any difference? To get something working, cut-paste the output to the semi-working step above to use in a Makefile modify to $(shell /home/kostav/julia/bin/julia /home/kostav/julia/contrib/julia-config.jl --cflags) etc
Re: [julia-users] Re: Embedding Julia with C++
*Related, what's in the directory /home/kostav/julia/usr/lib*When I run the following command: g++ -o test main.cpp -Wl,-rpath,/home/kostav/julia/usr/lib -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -L/home/kostav/julia/usr/lib -ljulia -lLLVM-3.7svn And I also initialize julia inside c++ with the following command: jl_init_with_image(/home/kostav/julia/usr/lib/julia, sys.so); It does work properly finally! *Where is it? Use that instead.*It's located at /home/kostav/julia/usr/bin/julia Yet again when I upgrade the makefile accordingly and it does look like this: CFLAGS += $(shell /home/kostav/julia/usr/bin/julia /home/kostav/julia/contrib/julia-config.jl --cflags) CXXFLAGS += $(shell /home/kostav/julia/usr/bin/julia /home/kostav/julia/contrib/julia-config.jl --cflags) LDFLAGS += $(shell /home/kostav/julia/usr/bin/julia /home/kostav/julia/contrib/julia-config.jl --ldflags) LDLIBS += $(shell /home/kostav/julia/usr/bin/julia /home/kostav/julia/contrib/julia-config.jl --ldlibs) all: embed_example I do receive the following error: cc -DJULIA_INIT_DIR=\/home/kostav/julia/usr/lib\ -I/home/kostav/julia/usr/include/julia -L/home/kostav/julia/usr/lib embed_example.c -Wl,-rpath,/home/kostav/julia/usr/lib -ljulia -o embed_example embed_example.c:1:19: fatal error: julia.h: No such file or directory #include julia.h ^ compilation terminated. builtin: recipe for target 'embed_example' failed make: *** [embed_example] Error 1
[julia-users] Errors while trying to use cxx and embed Julia together
Hello again, I am running Julia Version 0.4.0-dev+5841 (installed from source code) and currently run Ubuntu 15.04. I am trying to write a julia file that will call some c++ classes and functions, where inside these functions some other Julia functions will be used and I face some errors. Let me get things one by one. This is my c++ files: 1) The cpp of the class (ArrayMaker.cpp): #include ArrayMaker.h #include iostream using namespace std; ArrayMaker::ArrayMaker() { // TODO Auto-generated constructor stub } ArrayMaker::~ArrayMaker() { // TODO Auto-generated destructor stub } double ArrayMaker::ArrayMak(int iNum, float fNum) { jl_init_with_image(/home/kostav/julia/usr/lib/julia, sys.so); jl_eval_string(print(sqrt(2.0))); cout Got arguments: iNum , and fNum endl; double sol; jl_load(/home/kostav/.julia/v0.4/loleee/src/loleee.jl); jl_value_t * mod = (jl_value_t*)jl_eval_string(loleee); jl_function_t * func = jl_get_function((jl_module_t*)mod,funior); jl_value_t * argument = jl_box_float64(2.0); jl_value_t * argument2 = jl_box_float64(3.0); jl_value_t * ret = jl_call2(func, argument, argument2); sol = jl_unbox_float64(ret); iNumber = iNum; fNumber = fNum; fArr = new float[iNumber]; jl_atexit_hook(); return sol; } float* ArrayMaker::fillArr() { cout Filling the array endl; for (int i=0; i iNumber; i++) { fArr[i] = fNumber; fNumber *= 2; } return fArr; } 2) The equivelant header file (ArrayMaker.h): #ifndef ARRAYMAKER_H #define ARRAYMAKER_H #include julia.h class ArrayMaker { public: ArrayMaker(); virtual ~ArrayMaker(); double ArrayMak(int, float); float* fillArr(); private: int iNumber; float fNumber; float* fArr; }; #endif 3) The main file (main.cpp): #include ArrayMaker.h #include iostream using namespace std; int main(int argc, char ** argv) { ArrayMaker* FI_CSP=new ArrayMaker(); int a = 7; float b = 4; double z; z = FI_CSP-ArrayMak(a,b); coutendlTest = z; return 1; } Now inside the function ArrayMak I call a julia function that just takes two arguements and adds them and returns the value of the sum this function is called by a module I made under the name lolee. Note that when I compile and run this code with the equivelant makefile it works properly. Now next thing I do is to create the shared library that I need to pass to the cxx, just so that you can have a look in every single line I write this is the makefile I use to create the shared library: # define the C compiler to use CC = g++ # define any compile-time flags CFLAGS = -fPIC -Wall -g -Wl,-rpath,/home/kostav/julia/usr/lib LDFLAGS = -shared # define any directories containing header files other than /usr/include # INCLUDES = -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -I /home/kostav/julia/contrib # define library paths in addition to /usr/lib # if I wanted to include libraries not in /usr/lib I'd specify # their path using -Lpath, something like: LFLAGS = -L/home/kostav/julia/usr/lib # define any libraries to link into executable: # if I want to link in libraries (libx.so or libx.a) I use the -llibname # option, something like (this will link in libmylib.so and libm.so: LIBS = -ljulia -lLLVM-3.7svn # define the C source files SRCS = main.cpp ArrayMaker.cpp # define the C object files # # This uses Suffix Replacement within a macro: # $(name:string1=string2) # For each word in 'name' replace 'string1' with 'string2' # Below we are replacing the suffix .c of all words in the macro SRCS # with the .o suffix # OBJS = $(SRCS:.c=.o) # define the shared library MAIN = test.so # # The following part of the makefile is generic; it can be used to # build any executable just by changing the definitions above and by # deleting dependencies appended to the file from 'make depend' # .PHONY: depend clean all:$(MAIN) @echoSimplecompilernamedmycchasbeen compiled $(MAIN): $(OBJS) $(CC) $(CFLAGS) $(INCLUDES) -o $(MAIN) $(OBJS) $(LFLAGS) $(LIBS) $(LDFLAGS) # this is a suffix replacement rule for building .o's from .c's # it uses automatic variables $: the name of the prerequisite of # the rule(a .c file) and $@: the name of the target of the rule (a .o file) # (see the gnu make manual section about automatic variables) .c.o: $(CC) $(CFLAGS) $(INCLUDES) -c $ -o $@ clean: $(RM) *.o *~ $(MAIN) depend: $(SRCS) makedepend $(INCLUDES) $^ # DO NOT DELETE THIS LINE -- make depend needs it So after that I end up with the shared library test.so. Then I write the following julia file where I try to do a call of the c++ class that has inside the call to the julia function to check that it works with the following julia file: using Cxx # Importing shared library and header file const
[julia-users] Re: Embedding Julia with C++
Hello thanks a lot for your answer. You assumed correctly I do use version 0.4. If I got right your proposal about the linking error is to use the command jl_inti(JULIA_INIT_DIR) as shown in this http://julia.readthedocs.org/en/latest/manual/embedding/#example example and use a makefile where I just copy paste the commands shown in the example, so the makefile looks like that: JL_SHARE = $(shell julia -e 'print(joinpath(JULIA_HOME,Base.DATAROOTDIR,julia))') CFLAGS += $(shell $(JL_SHARE)/julia-config.jl --cflags) CXXFLAGS += $(shell $(JL_SHARE)/julia-config.jl --cflags) LDFLAGS += $(shell $(JL_SHARE)/julia-config.jl --ldflags) LDLIBS += $(shell $(JL_SHARE)/julia-config.jl --ldlibs) all: main and my source code looks like that: #include julia.h int main(int argc, char *argv[]) { /* required: setup the julia context */ jl_init(JULIA_INIT_DIR); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers */ jl_atexit_hook(); return 0; } Yet again when I try to compile I receive the following errors: make: /home/kostav/julia/usr/bin/../share/julia/julia-config.jl: Command not found make: /home/kostav/julia/usr/bin/../share/julia/julia-config.jl: Command not found make: /home/kostav/julia/usr/bin/../share/julia/julia-config.jl: Command not found cc main.c -o main main.c:1:19: fatal error: julia.h: No such file or directory #include julia.h ^ compilation terminated. builtin: recipe for target 'main' failed make: *** [main] Error 1 Note that I have really no experience with makefiles so I can not really handle them properly, but I assumed that I should be working if I did all it was saying in the example. Yet again I receive the above errors. On Monday, July 13, 2015 at 9:30:33 AM UTC+2, Jeff Waller wrote: It's not clear to me which version you are using? Depending on the version, It is referred to in the URL you linked... I'll just cut to the chase use 0.4 and julia_config.jl as described in the doc, create a Makefile just cut-and-paste the example, and augment with your source. All but one of your errors is a result of the wrong compile/link flags. The last error is that main() is either not being compiled or linked, that's just straight-up C programming, and has nothing to do with Julia. As far as eclipse goes, I'm confident it's possible, I can't imagine eclipse not supporting compilation using Makefiles, but even if it doesn't you can still automate things, but just get something working first and you can embellish later. TL;DR 0.4, julia_config, cut-paste Makefile, add your source, done
Re: [julia-users] Re: Embedding Julia with C++
Any ideas on how to fix the compile error: julia.h: No such file or directory #include julia.h compilation terminated.? This is the problem, or part of it anyway. That file lives under `julia/contrib` in a source build. Hmm this should be bundled into all 0.4, oh oh.
Re: [julia-users] Re: Embedding Julia with C++
Thanks a lot, that fixed this error, but now it returns me the same error that I get when I just run the compile command in terminal: fatal error: julia.h: No such file or directory #include julia.h compilation terminated. On Monday, July 13, 2015 at 4:34:24 PM UTC+2, Jeff Waller wrote: CFLAGS += $(shell $/home/kostav/julia/contrib/julia-config.jl --cflags) take out the 2nd $ CFLAGS += $(shell /home/kostav/julia/contrib/julia-config.jl --cflags) what results?
Re: [julia-users] Re: Embedding Julia with C++
Ok, my current Julia version (that I installed via running the source code) is: *Version 0.4.0-dev+5841 (2015-07-07 14:58 UTC)*So, what should I do different so that -I flag gets the proper value? On Monday, July 13, 2015 at 5:15:04 PM UTC+2, Jeff Waller wrote: On Monday, July 13, 2015 at 10:54:57 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Any ideas on how to fix the compile error: julia.h: No such file or directory #include julia.h compilation terminated.? Yea of course. This is a result of the -I flag having the wrong value. There was a space of time that this command (julia_config.jl) was not working as a result of the new use of sys.so instead of sys.ji, but that has sense been fixed, so that's why I'm asking what version it was. It would be working in the newest version, but I am verifying that now. The cause of libjulia.so not found is the link step is missing -Wl,-rpath, which julia_config gives you that's why I keep coming back to it.
[julia-users] Re: Embedding Julia with C++
Hello again, I am writing to this post, as I face some more problems with trying to link Julia functions with C++ code. The thing is that I changed my current Julia version, I installed Julia running the source code as I wanted to install the Cxx package as well. So, I just went to run the first smallest example with some c code and c++ code that uses a julia function as presented here http://julia.readthedocs.org/en/latest/manual/embedding/, so I only try to run the following file: #include julia.h int main(int argc, char *argv[]){ /* required: setup the julia context */ jl_init(NULL); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers*/ jl_atexit_hook(); return 0;} The first thing that was different was that when I was including just the path of julia.h and libjulia.so and I run the command like this: gcc -o test main.c -I /home/kostav/julia/src -L/home/kostav/julia/usr/lib -ljulia I receive an error saying: *In file included from main.c:1:0: /home/kostav/julia/src/julia.h:12:24: fatal error: libsupport.h: No such file or directory #include libsupport.h compilation terminated.* Then when I add the path of libsupport.h I receive a similar error msg saying that uv.h is missing so I have to add its path as well, and as a result I finally run the following command: gcc -o test main.c -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -L/home/kostav/julia/usr/lib -ljulia In that case I receive various errors about undefined references regarding llvm functions and as a result I include as well the equivelant library and finally run the following command: gcc -o test main.c -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -L/home/kostav/julia/usr/lib -ljulia -lLLVM-3.7svn On this case the program does compile but when I try to run it, I receive the following error: *error while loading shared libraries: libjulia.so: cannot open shared object file: No such file or directory*The exact same implies for the equivalent program in c++. Note that when I try to call a julia function inside a c++ more complicated structure (namely in a class) I receive a different error. More specifically just for the very simple class that exists in this Cxx example https://github.com/Keno/Cxx.jl#example-8-using-c-with-shared-libraries for just using the same simple julia function inside the class that leads to the following slighltly different cpp file #include ArrayMaker.h #include iostream using namespace std; ArrayMaker::ArrayMaker(int iNum, float fNum) { jl_init(NULL); jl_eval_string(print(sqrt(2.0))); cout Got arguments: iNum , and fNum endl; iNumber = iNum; fNumber = fNum; fArr = new float[iNumber]; jl_atexit_hook(); } float* ArrayMaker::fillArr() { cout Filling the array endl; for (int i=0; i iNumber; i++) { fArr[i] = fNumber; fNumber *= 2; } return fArr; } With the header file being almost the same: #ifndef ARRAYMAKER_H #define ARRAYMAKER_H #include julia.h class ArrayMaker { private: int iNumber; float fNumber; float* fArr; public: ArrayMaker(int, float); float* fillArr(); }; #endif When I try to compile in terminal using the following command: g++ -o test ArrayMaker.cpp -I /home/kostav/julia/src -I /home/kostav/julia/usr/include -I /home/kostav/julia/src/support -L/home/kostav/julia/usr/lib -ljulia -lLLVM-3.7svn I do receive the following error: /usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o: In function `_start': /build/buildd/glibc-2.21/csu/../sysdeps/x86_64/start.S:114: undefined reference to `main' collect2: error: ld returned 1 exit status I am really not sure how to resolve any of the two errors and in general the second one is also pretty important to me, as in general my end goal is starting from a julia file to use my self-written c++ code, where inside the c++ code I call some other self-written julia functions, I know it does sound kind twisted, but that's what I am interested to do, as I am trying to tackle a big Mathematical Problem by builing the original problem in Jump then decompose it and use a solver that is written in c++ (that's why I need to call c++ inside julia) which then needs again to send back information to the original model and probably solve some subproblems with CPLEX (that's why I will need inside the c++ code to call julia functions again). That with as much as few words as possible in order not to bother you with a lot of unnecessary information.
Re: [julia-users] Errors while trying to install Cxx Package
Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name patching file CMakeLists.txt patching file src/openssl_stream.c /bin/sh: 2: cmake: not found Makefile:1907: recipe for target 'libgit2/build/Makefile' failed make[1]: *** [libgit2/build/Makefile] Error 127 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Thursday, July 9, 2015 at 10:27:12 PM UTC+2, Keno Fischer wrote: I fixed that this morning in https://github.com/llvm-mirror/lldb/commit/f9d5ebafe446857ff805b078b90c8c400758acdd. Try updating LLDB (make -C deps update-llvm will do the trick). On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello again, I am facing some problems when trying to run the julia source code. As you pointed out I created the Make.user file and tried to run the source code but I receive the following error which I can not sort out how to fix: /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Initialize()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon10InitializeEv+0x65): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Initialize()' /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Terminate()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon9TerminateEv+0x3c): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Terminate()' collect2: error: ld returned 1 exit status /home/kostav/julia/deps/llvm-svn/Makefile.rules:1206: recipe for target '/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so' failed make[5]: *** [/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[4]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:965: recipe for target 'install' failed make[3]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[2]: *** [install] Error 1 Makefile:642: recipe for target '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed make[1]: *** [/home/kostav/julia/usr/lib/libLLVMCodeGen.a] Error 2 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override LLVM_ASSERTIONS=1 override BUILD_LLVM_CLANG=1 override BUILD_LLDB=1 override USE_LLVM_SHLIB=1 override LLDB_DISABLE_PYTHON=1 Does
Re: [julia-users] Errors while trying to install Cxx Package
Ok, this did work. Thanks a lot for the suggestion. I actually haven't proceeded with trying this, cause I thought that since the moment julia command was not working inside the source folder the problem had to do with the installation itself and not with linking. My mistake. Thanks a lot for all your answers and help hope now will be able to use Cxx. On Friday, July 10, 2015 at 5:04:25 PM UTC+2, El suisse wrote: for add softlink: sudo ln -s /home/kostav/julia/./julia /usr/local/bin 2015-07-10 11:57 GMT-03:00 Isaiah Norton isaiah...@gmail.com javascript:: Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. What else could I try? Run one of them? bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia On Fri, Jul 10, 2015 at 10:50 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Thanks a lot for pointing out the above mentioned part of the Readme file I have had a look on it as well and tried also to add the prefix line in Make.used but also didn't work. Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. Make, maketest and make-install all run without any error msg. What else could I try? On Friday, July 10, 2015 at 4:43:09 PM UTC+2, Isaiah wrote: If `julia/usr/bin/julia` or `julia/usr/bin/julia-debug` do not exist, then something went wrong in the build. On Fri, Jul 10, 2015 at 10:40 AM, El suisse elsu...@gmail.com wrote: from the README..md Once it is built, you can run the julia executable using its full path in the directory created above (the julia directory), or, to run it from anywhere, either - add a soft link to the julia executable in the julia directory to /usr/local/bin (or any suitable directory already in your path), or - add the julia directory to your executable path for this shell session (in bash: export PATH=$(pwd):$PATH ; in csh or tcsh: set path= ( $path $cwd ) ), or - add the julia directory to your executable path permanently (e.g. in .bash_profile), or - write prefix=/path/to/install/folder into Make.user and then run make install. Now you should be able to run Julia like this: julia If everything works correctly, you will see a Julia banner and an interactive prompt into which you can enter expressions for evaluation. (Errors related to libraries might be caused by old, incompatible libraries sitting around in your PATH. In that case, try moving the julia directory earlier in the PATH). 2015-07-10 11:33 GMT-03:00 Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com: I downloaded the julia file and located them in the home directory (/home/kostav/julia) then I run make, make test and make install as well. All of them seem to work. Then when I try to run julia command in terminal opening terminal from the file where the source is located (/home/kostav/julia), I receive a msg saying that julia is not installed. In the usr/bin there is no folder or file under the name julia. I am really not sure what to do to fix this, and since I want Cxx package I do need the source code installation... On Friday, July 10, 2015 at 4:26:43 PM UTC+2, Seth wrote: I haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without
Re: [julia-users] Errors while trying to install Cxx Package
I downloaded the julia file and located them in the home directory (/home/kostav/julia) then I run make, make test and make install as well. All of them seem to work. Then when I try to run julia command in terminal opening terminal from the file where the source is located (/home/kostav/julia), I receive a msg saying that julia is not installed. In the usr/bin there is no folder or file under the name julia. I am really not sure what to do to fix this, and since I want Cxx package I do need the source code installation... On Friday, July 10, 2015 at 4:26:43 PM UTC+2, Seth wrote: I haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name patching file CMakeLists.txt patching file src/openssl_stream.c /bin/sh: 2: cmake: not found Makefile:1907: recipe for target 'libgit2/build/Makefile' failed make[1]: *** [libgit2/build/Makefile] Error 127 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Thursday, July 9, 2015 at 10:27:12 PM UTC+2, Keno Fischer wrote: I fixed that this morning in https://github.com/llvm-mirror/lldb/commit/f9d5ebafe446857ff805b078b90c8c400758acdd. Try updating LLDB (make -C deps update-llvm will do the trick). On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello again, I am facing some problems when trying to run the julia source code. As you pointed out I created the Make.user file and tried to run the source code but I receive the following error which I can not sort out how to fix: /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Initialize()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon10InitializeEv+0x65): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Initialize()' /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Terminate()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon9TerminateEv+0x3c): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Terminate()' collect2: error: ld returned 1 exit status /home/kostav/julia/deps/llvm-svn/Makefile.rules:1206: recipe for target '/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so' failed make[5]: *** [/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[4]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:965: recipe for target 'install' failed make[3]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[2]: *** [install] Error 1 Makefile:642: recipe for target '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed
Re: [julia-users] Errors while trying to install Cxx Package
Thanks a lot for pointing out the above mentioned part of the Readme file I have had a look on it as well and tried also to add the prefix line in Make.used but also didn't work. Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. Make, maketest and make-install all run without any error msg. What else could I try? On Friday, July 10, 2015 at 4:43:09 PM UTC+2, Isaiah wrote: If `julia/usr/bin/julia` or `julia/usr/bin/julia-debug` do not exist, then something went wrong in the build. On Fri, Jul 10, 2015 at 10:40 AM, El suisse elsu...@gmail.com javascript: wrote: from the README..md Once it is built, you can run the julia executable using its full path in the directory created above (the julia directory), or, to run it from anywhere, either - add a soft link to the julia executable in the julia directory to /usr/local/bin (or any suitable directory already in your path), or - add the julia directory to your executable path for this shell session (in bash: export PATH=$(pwd):$PATH ; in csh or tcsh: set path= ( $path $cwd ) ), or - add the julia directory to your executable path permanently (e.g. in .bash_profile), or - write prefix=/path/to/install/folder into Make.user and then run make install. Now you should be able to run Julia like this: julia If everything works correctly, you will see a Julia banner and an interactive prompt into which you can enter expressions for evaluation. (Errors related to libraries might be caused by old, incompatible libraries sitting around in your PATH. In that case, try moving the julia directory earlier in the PATH). 2015-07-10 11:33 GMT-03:00 Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript:: I downloaded the julia file and located them in the home directory (/home/kostav/julia) then I run make, make test and make install as well. All of them seem to work. Then when I try to run julia command in terminal opening terminal from the file where the source is located (/home/kostav/julia), I receive a msg saying that julia is not installed. In the usr/bin there is no folder or file under the name julia. I am really not sure what to do to fix this, and since I want Cxx package I do need the source code installation... On Friday, July 10, 2015 at 4:26:43 PM UTC+2, Seth wrote: I haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name patching file CMakeLists.txt patching file src/openssl_stream.c /bin/sh: 2: cmake: not found Makefile:1907: recipe for target 'libgit2/build/Makefile' failed make[1]: *** [libgit2/build/Makefile] Error 127 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Thursday, July 9, 2015 at 10:27:12 PM UTC+2, Keno Fischer wrote: I fixed that this morning in https://github.com/llvm-mirror/lldb/commit/f9d5ebafe446857ff805b078b90c8c400758acdd. Try updating LLDB (make -C deps update-llvm will do the trick). On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis
Re: [julia-users] Errors while trying to install Cxx Package
Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name patching file CMakeLists.txt patching file src/openssl_stream.c /bin/sh: 2: cmake: not found Makefile:1907: recipe for target 'libgit2/build/Makefile' failed make[1]: *** [libgit2/build/Makefile] Error 127 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Thursday, July 9, 2015 at 10:27:12 PM UTC+2, Keno Fischer wrote: I fixed that this morning in https://github.com/llvm-mirror/lldb/commit/f9d5ebafe446857ff805b078b90c8c400758acdd. Try updating LLDB (make -C deps update-llvm will do the trick). On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello again, I am facing some problems when trying to run the julia source code. As you pointed out I created the Make.user file and tried to run the source code but I receive the following error which I can not sort out how to fix: /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Initialize()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon10InitializeEv+0x65): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Initialize()' /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Terminate()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon9TerminateEv+0x3c): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Terminate()' collect2: error: ld returned 1 exit status /home/kostav/julia/deps/llvm-svn/Makefile.rules:1206: recipe for target '/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so' failed make[5]: *** [/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[4]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:965: recipe for target 'install' failed make[3]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[2]: *** [install] Error 1 Makefile:642: recipe for target '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed make[1]: *** [/home/kostav/julia/usr/lib/libLLVMCodeGen.a] Error 2 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override
Re: [julia-users] Errors while trying to install Cxx Package
I did open both locations in terminal and type julia and I still get the same msg that: The program 'julia' is currently not installed. You can install it by typing: sudo apt-get install julia Unless if you were meaning sth else and I missunderstood your suggestion On Friday, July 10, 2015 at 4:57:51 PM UTC+2, Isaiah wrote: Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. What else could I try? Run one of them? bar@baz:~/julia$ /home/kostav/julia/usr/bin/julia On Fri, Jul 10, 2015 at 10:50 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Thanks a lot for pointing out the above mentioned part of the Readme file I have had a look on it as well and tried also to add the prefix line in Make.used but also didn't work. Also both 'julia/usr/bin/julia` and `julia/usr/bin/julia-debug` do exist. Make, maketest and make-install all run without any error msg. What else could I try? On Friday, July 10, 2015 at 4:43:09 PM UTC+2, Isaiah wrote: If `julia/usr/bin/julia` or `julia/usr/bin/julia-debug` do not exist, then something went wrong in the build. On Fri, Jul 10, 2015 at 10:40 AM, El suisse elsu...@gmail.com wrote: from the README..md Once it is built, you can run the julia executable using its full path in the directory created above (the julia directory), or, to run it from anywhere, either - add a soft link to the julia executable in the julia directory to /usr/local/bin (or any suitable directory already in your path), or - add the julia directory to your executable path for this shell session (in bash: export PATH=$(pwd):$PATH ; in csh or tcsh: set path= ( $path $cwd ) ), or - add the julia directory to your executable path permanently (e.g. in .bash_profile), or - write prefix=/path/to/install/folder into Make.user and then run make install. Now you should be able to run Julia like this: julia If everything works correctly, you will see a Julia banner and an interactive prompt into which you can enter expressions for evaluation. (Errors related to libraries might be caused by old, incompatible libraries sitting around in your PATH. In that case, try moving the julia directory earlier in the PATH). 2015-07-10 11:33 GMT-03:00 Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com: I downloaded the julia file and located them in the home directory (/home/kostav/julia) then I run make, make test and make install as well. All of them seem to work. Then when I try to run julia command in terminal opening terminal from the file where the source is located (/home/kostav/julia), I receive a msg saying that julia is not installed. In the usr/bin there is no folder or file under the name julia. I am really not sure what to do to fix this, and since I want Cxx package I do need the source code installation... On Friday, July 10, 2015 at 4:26:43 PM UTC+2, Seth wrote: I haven't read the entire thread here, but if you're in the top-level julia source directory and have built julia from source, the binary is located in ./usr/bin/julia . On Friday, July 10, 2015 at 7:19:53 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Any suggestions pls??? On Friday, July 10, 2015 at 11:04:58 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Finally manage to run make command with no errors. Yet again after this I perform make test and everything seems to be fine. Then I run make install and once its finished, I try to run Julia command in terminal in the path where the julia source file is located but I receive msg saying that I don't have julia installed. Any idea on how to proceed with this? On Friday, July 10, 2015 at 1:17:53 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: * I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name
Re: [julia-users] Errors while trying to install Cxx Package
Hello again, I am facing some problems when trying to run the julia source code. As you pointed out I created the Make.user file and tried to run the source code but I receive the following error which I can not sort out how to fix: /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Initialize()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon10InitializeEv+0x65): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Initialize()' /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Terminate()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon9TerminateEv+0x3c): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Terminate()' collect2: error: ld returned 1 exit status /home/kostav/julia/deps/llvm-svn/Makefile.rules:1206: recipe for target '/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so' failed make[5]: *** [/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[4]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:965: recipe for target 'install' failed make[3]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[2]: *** [install] Error 1 Makefile:642: recipe for target '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed make[1]: *** [/home/kostav/julia/usr/lib/libLLVMCodeGen.a] Error 2 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override LLVM_ASSERTIONS=1 override BUILD_LLVM_CLANG=1 override BUILD_LLDB=1 override USE_LLVM_SHLIB=1 override LLDB_DISABLE_PYTHON=1 Does this mean that I just create a file with the name Make.user and copy paste this line on the file and then save it in the directory where the source file is downloaded? Also when you say ne that uses LLVM-svn not sure what I need to check for this one. On Tuesday, July 7, 2015 at 5:36:49 PM UTC+2, Keno Fischer wrote: Please see the instructions in the Cxx.jl README. In particular, you need (at the moment at least) - a source install of julia - one that uses LLVM-svn On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: liblapack.so.3 LIBM: libopenlibm LLVM: libLLVM-3.3 And when I try to add the CXX package I receive the following error: Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /usr/bin BuildBootstrap.Makefile:2: /usr/bin/../../deps/Versions.make: No such file or directory BuildBootstrap.Makefile:3: /usr/bin/../../Make.inc: No such file or directory make: *** No rule to make target '/usr/bin/../../Make.inc'. Stop. =[ ERROR: Cxx ]= LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/usr/bin`, ProcessExited(2)) [2] while loading /home/kostav/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16 [ BUILD ERRORS ] WARNING: Cxx had build errors. - packages with build errors remain installed in /home/kostav/.julia/v0.4 - build the package(s) and all dependencies with `Pkg.build(Cxx)` - build a single package by running its `deps/build.jl` script I did try to search online about it and found some posts but didn't manage to solve the issue, so in case
Re: [julia-users] Errors while trying to install Cxx Package
* I was missing cmake now this problem is solved. Hopefully the build will work properly now! On Friday, July 10, 2015 at 12:58:12 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Thanks a lot once again. So after fixing this a few more errors I am stacked with the following error msg: Making check in cxx == All 0 tests passed == Making check in mpn Making check in mpz Making check in mpq Making check in mpf Making check in printf Making check in scanf Making check in rand Making check in cxx Making check in demos Making check in calc Making check in expr Making check in tune Making check in doc Note: checking out '159061a8ce206b694448313a84387600408f6029'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name patching file CMakeLists.txt patching file src/openssl_stream.c /bin/sh: 2: cmake: not found Makefile:1907: recipe for target 'libgit2/build/Makefile' failed make[1]: *** [libgit2/build/Makefile] Error 127 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Thursday, July 9, 2015 at 10:27:12 PM UTC+2, Keno Fischer wrote: I fixed that this morning in https://github.com/llvm-mirror/lldb/commit/f9d5ebafe446857ff805b078b90c8c400758acdd. Try updating LLDB (make -C deps update-llvm will do the trick). On Thu, Jul 9, 2015 at 4:24 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello again, I am facing some problems when trying to run the julia source code. As you pointed out I created the Make.user file and tried to run the source code but I receive the following error which I can not sort out how to fix: /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Initialize()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon10InitializeEv+0x65): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Initialize()' /home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldbInitialize.a(SystemInitializerCommon.o): In function `lldb_private::SystemInitializerCommon::Terminate()': SystemInitializerCommon.cpp:(.text._ZN12lldb_private23SystemInitializerCommon9TerminateEv+0x3c): undefined reference to `lldb_private::DynamicLoaderWindowsDYLD::Terminate()' collect2: error: ld returned 1 exit status /home/kostav/julia/deps/llvm-svn/Makefile.rules:1206: recipe for target '/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so' failed make[5]: *** [/home/kostav/julia/deps/llvm-svn/build_Release+Asserts/Release+Asserts/lib/liblldb.so] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[4]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:965: recipe for target 'install' failed make[3]: *** [install] Error 1 /home/kostav/julia/deps/llvm-svn/Makefile.rules:880: recipe for target 'install' failed make[2]: *** [install] Error 1 Makefile:642: recipe for target '/home/kostav/julia/usr/lib/libLLVMCodeGen.a' failed make[1]: *** [/home/kostav/julia/usr/lib/libLLVMCodeGen.a] Error 2 Makefile:49: recipe for target 'julia-deps' failed make: *** [julia-deps] Error 2 On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override LLVM_ASSERTIONS=1 override BUILD_LLVM_CLANG=1 override BUILD_LLDB=1 override USE_LLVM_SHLIB=1 override LLDB_DISABLE_PYTHON=1 Does this mean that I just create a file with the name Make.user and copy paste this line on the file and then save it in the directory where the source file is downloaded? Also when you say ne that uses LLVM-svn not sure what I need to check for this one. On Tuesday, July 7, 2015 at 5:36:49 PM UTC+2, Keno Fischer wrote: Please see the instructions in the Cxx.jl README. In particular, you need (at the moment at least) - a source install
Re: [julia-users] Errors while trying to install Cxx Package
Ok, thanks a lot for your help! On Tuesday, July 7, 2015 at 6:03:12 PM UTC+2, Keno Fischer wrote: Yes, that is correct, just create a Make.user file with that content in the same directory as your julia source install (where the Make.inc file already is). The `LLVM_VER=svn` line directs it to use the svn version of llvm. On Tue, Jul 7, 2015 at 11:59 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override LLVM_ASSERTIONS=1 override BUILD_LLVM_CLANG=1 override BUILD_LLDB=1 override USE_LLVM_SHLIB=1 override LLDB_DISABLE_PYTHON=1 Does this mean that I just create a file with the name Make.user and copy paste this line on the file and then save it in the directory where the source file is downloaded? Also when you say ne that uses LLVM-svn not sure what I need to check for this one. On Tuesday, July 7, 2015 at 5:36:49 PM UTC+2, Keno Fischer wrote: Please see the instructions in the Cxx.jl README. In particular, you need (at the moment at least) - a source install of julia - one that uses LLVM-svn On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: liblapack.so.3 LIBM: libopenlibm LLVM: libLLVM-3.3 And when I try to add the CXX package I receive the following error: Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /usr/bin BuildBootstrap.Makefile:2: /usr/bin/../../deps/Versions.make: No such file or directory BuildBootstrap.Makefile:3: /usr/bin/../../Make.inc: No such file or directory make: *** No rule to make target '/usr/bin/../../Make.inc'. Stop. =[ ERROR: Cxx ]= LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/usr/bin`, ProcessExited(2)) [2] while loading /home/kostav/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16 [ BUILD ERRORS ] WARNING: Cxx had build errors. - packages with build errors remain installed in /home/kostav/.julia/v0.4 - build the package(s) and all dependencies with `Pkg.build(Cxx)` - build a single package by running its `deps/build.jl` script I did try to search online about it and found some posts but didn't manage to solve the issue, so in case there are any suggestions I would be really glad to hear.
Re: [julia-users] Errors while trying to install Cxx Package
Ok, thank you pointing that out. So, I need to uninstall my current version and install using the source files. Just two questions really noob ones. In the read me file, it says that I need to add the following lines to a Make.user: override LLDB_VER=master override LLVM_VER=svn override LLVM_ASSERTIONS=1 override BUILD_LLVM_CLANG=1 override BUILD_LLDB=1 override USE_LLVM_SHLIB=1 override LLDB_DISABLE_PYTHON=1 Does this mean that I just create a file with the name Make.user and copy paste this line on the file and then save it in the directory where the source file is downloaded? Also when you say ne that uses LLVM-svn not sure what I need to check for this one. On Tuesday, July 7, 2015 at 5:36:49 PM UTC+2, Keno Fischer wrote: Please see the instructions in the Cxx.jl README. In particular, you need (at the moment at least) - a source install of julia - one that uses LLVM-svn On Tue, Jul 7, 2015 at 11:33 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: liblapack.so.3 LIBM: libopenlibm LLVM: libLLVM-3.3 And when I try to add the CXX package I receive the following error: Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /usr/bin BuildBootstrap.Makefile:2: /usr/bin/../../deps/Versions.make: No such file or directory BuildBootstrap.Makefile:3: /usr/bin/../../Make.inc: No such file or directory make: *** No rule to make target '/usr/bin/../../Make.inc'. Stop. =[ ERROR: Cxx ]= LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/usr/bin`, ProcessExited(2)) [2] while loading /home/kostav/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16 [ BUILD ERRORS ] WARNING: Cxx had build errors. - packages with build errors remain installed in /home/kostav/.julia/v0.4 - build the package(s) and all dependencies with `Pkg.build(Cxx)` - build a single package by running its `deps/build.jl` script I did try to search online about it and found some posts but didn't manage to solve the issue, so in case there are any suggestions I would be really glad to hear.
[julia-users] Errors while trying to install Cxx Package
Hello, I am running the following version of Julia: Julia Version 0.4.0-dev+5809 Commit b414076* (2015-07-06 15:38 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: liblapack.so.3 LIBM: libopenlibm LLVM: libLLVM-3.3 And when I try to add the CXX package I receive the following error: Pkg.build(Cxx) INFO: Building Cxx Tuning for julia installation at: /usr/bin BuildBootstrap.Makefile:2: /usr/bin/../../deps/Versions.make: No such file or directory BuildBootstrap.Makefile:3: /usr/bin/../../Make.inc: No such file or directory make: *** No rule to make target '/usr/bin/../../Make.inc'. Stop. =[ ERROR: Cxx ]= LoadError: failed process: Process(`make -f BuildBootstrap.Makefile JULIA_HOME=/usr/bin`, ProcessExited(2)) [2] while loading /home/kostav/.julia/v0.4/Cxx/deps/build.jl, in expression starting on line 16 [ BUILD ERRORS ] WARNING: Cxx had build errors. - packages with build errors remain installed in /home/kostav/.julia/v0.4 - build the package(s) and all dependencies with `Pkg.build(Cxx)` - build a single package by running its `deps/build.jl` script I did try to search online about it and found some posts but didn't manage to solve the issue, so in case there are any suggestions I would be really glad to hear.
Re: [julia-users] calling julia functions in C++
Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? (I am really new to Julia so maybe the question sounds really stupid, sorry for that) On Tuesday, June 30, 2015 at 4:28:54 PM UTC+2, Isaiah wrote: `jl_new_module` creates a new module. You must evaluate your .jl file defining the module first, then to get a reference to the module do: `jl_value_t* mod = jl_eval_string(MyModName); Then you can pass mod as the argument to `jl_get_function`. On Tue, Jun 30, 2015 at 10:16 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Hello, I am trying to write some function in Julia which I will be able to call inside my C++ projects in Eclipse. In the documentation there is this http://julia-demo.readthedocs.org/en/latest/manual/embedding.html#calling-julia-functions example on how to call a function of julia from an existing module. So, what I have done was to create my own module where inside I included my function and then my understanding is that I should be using jl_new_module(jl_sym_t *name); instead of jl_base_module. But I am not sure (in case my assumption that this is the correct command is true) how to proper use it's syntax, as what I am trying is: jl_function_t * func = jl_get_function(jl_new_module(mymodule),myfunction); and I tried instead of mymodule also mymodule.jl and mymodule and mymodule.jl and in all the attempts I recieve an error that: mymodule was not declared in this scope Let me note beforehand that the module is being stored globaly as when I run julia on the terminal I can use it through the comand using mymodule. Still maybe I am trying to use the wrong command or sth, so if there is any suggestion I would be really greatful to hear it.
Re: [julia-users] calling julia functions in C++
Ok, so first of all thanks a lot for all the help so far. So, now I try to follow the instructions and I write the following three lines of code inside C++: jl_load(mymodule.jl); jl_value_t * mod = jl_eval_string(mymodule); jl_function_t * func = jl_get_function(jl_new_module(mod),myfunction); (the jl file and the module itself have the same name in this case mymodule) But I do receive the following 2 errors when Eclipse compiles: 1) error: invalid conversion from ‘void*’ to ‘jl_value_t* {aka _jl_value_t*}’ [-fpermissive] (this is referring to jl_value_t * mod = jl_eval_string(mymodule);) 2) error: cannot convert ‘jl_value_t* {aka _jl_value_t*}’ to ‘jl_sym_t* {aka _jl_sym_t*}’ for argument ‘1’ to ‘jl_module_t* jl_new_module(jl_sym_t*)’ (this referring to jl_function_t * func = jl_get_function(jl_new_module(mod),myfunction);) No problem, no stupid questions. However, I would suggest that you might want to spend some time getting really familiar with Julia by itself, before trying to use the embedding API. It might save a lot of time in the long run. You are totally right on this, I am just trying first to check if it is doable to do some combinations between C++ in Eclipse and Julia (such as using functions written in Julia inside a C++ routine etc), because I am planning to connect a large-scale C++ with Julia and before starting to studying Julia in full detail and start writing proper code was thinking to do some small tests in connectivity between the two. But it turns out that I don't know some very basic things to finish this task. On Tuesday, June 30, 2015 at 5:32:53 PM UTC+2, Isaiah wrote: Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? Ok, say you have a file: ``` module mymod function foo() ... end end ``` At the Julia prompt you would do: julia include(myfile.jl) And then you have the module `mymod` available in the global namespace. In C you can do the equivalent with: `jl_load(myfile.jl)` I am really new to Julia so maybe the question sounds really stupid, sorry for that No problem, no stupid questions. However, I would suggest that you might want to spend some time getting really familiar with Julia by itself, before trying to use the embedding API. It might save a lot of time in the long run. On Tue, Jun 30, 2015 at 10:54 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? (I am really new to Julia so maybe the question sounds really stupid, sorry for that) On Tuesday, June 30, 2015 at 4:28:54 PM UTC+2, Isaiah wrote: `jl_new_module` creates a new module. You must evaluate your .jl file defining the module first, then to get a reference to the module do: `jl_value_t* mod = jl_eval_string(MyModName); Then you can pass mod as the argument to `jl_get_function`. On Tue, Jun 30, 2015 at 10:16 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello, I am trying to write some function in Julia which I will be able to call inside my C++ projects in Eclipse. In the documentation there is this http://julia-demo.readthedocs.org/en/latest/manual/embedding.html#calling-julia-functions example on how to call a function of julia from an existing module. So, what I have done was to create my own module where inside I included my function and then my understanding is that I should be using jl_new_module(jl_sym_t *name); instead of jl_base_module. But I am not sure (in case my assumption that this is the correct command is true) how to proper use it's syntax, as what I am trying is: jl_function_t * func = jl_get_function(jl_new_module(mymodule),myfunction); and I tried instead of mymodule also mymodule.jl and mymodule and mymodule.jl and in all the attempts I recieve an error that: mymodule was not declared in this scope Let me note beforehand that the module is being stored globaly as when I run julia on the terminal I can use it through the comand using mymodule. Still maybe I am trying to use the wrong command or sth, so if there is any suggestion I would be really greatful to hear it.
Re: [julia-users] calling julia functions in C++
Ok, thanks a lot it did work just fine! just one more quick question, if I got it right jl_call1 is for adding one input argument to the functions and jl_call2 is for adding two input arguments to the function. For adding more arguments I continue in the same way? For instance for 4 arguments I just use use jl_call4? Or what I am saying is completely mistaken? On Tuesday, June 30, 2015 at 5:58:18 PM UTC+2, Isaiah wrote: try jl_value_t * mod = (jl_value_t*)jl_eval_string(mymodule); jl_function_t * func = jl_get_function((jl_module_t*)mod,myfunction); (jl_new_module creates a new module -- that's not what you want, because the module containing your function is created when you eval yourfile.jl) On Tue, Jun 30, 2015 at 11:47 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Ok, so first of all thanks a lot for all the help so far. So, now I try to follow the instructions and I write the following three lines of code inside C++: jl_load(mymodule.jl); jl_value_t * mod = jl_eval_string(mymodule); jl_function_t * func = jl_get_function(jl_new_module(mod),myfunction); (the jl file and the module itself have the same name in this case mymodule) But I do receive the following 2 errors when Eclipse compiles: 1) error: invalid conversion from ‘void*’ to ‘jl_value_t* {aka _jl_value_t*}’ [-fpermissive] (this is referring to jl_value_t * mod = jl_eval_string(mymodule);) 2) error: cannot convert ‘jl_value_t* {aka _jl_value_t*}’ to ‘jl_sym_t* {aka _jl_sym_t*}’ for argument ‘1’ to ‘jl_module_t* jl_new_module(jl_sym_t*)’ (this referring to jl_function_t * func = jl_get_function(jl_new_module(mod),myfunction);) No problem, no stupid questions. However, I would suggest that you might want to spend some time getting really familiar with Julia by itself, before trying to use the embedding API. It might save a lot of time in the long run. You are totally right on this, I am just trying first to check if it is doable to do some combinations between C++ in Eclipse and Julia (such as using functions written in Julia inside a C++ routine etc), because I am planning to connect a large-scale C++ with Julia and before starting to studying Julia in full detail and start writing proper code was thinking to do some small tests in connectivity between the two. But it turns out that I don't know some very basic things to finish this task. On Tuesday, June 30, 2015 at 5:32:53 PM UTC+2, Isaiah wrote: Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? Ok, say you have a file: ``` module mymod function foo() ... end end ``` At the Julia prompt you would do: julia include(myfile.jl) And then you have the module `mymod` available in the global namespace. In C you can do the equivalent with: `jl_load(myfile.jl)` I am really new to Julia so maybe the question sounds really stupid, sorry for that No problem, no stupid questions. However, I would suggest that you might want to spend some time getting really familiar with Julia by itself, before trying to use the embedding API. It might save a lot of time in the long run. On Tue, Jun 30, 2015 at 10:54 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Sorry but I am not sure what you mean and how to *evaluate your .jl file defining the module first*? (I am really new to Julia so maybe the question sounds really stupid, sorry for that) On Tuesday, June 30, 2015 at 4:28:54 PM UTC+2, Isaiah wrote: `jl_new_module` creates a new module. You must evaluate your .jl file defining the module first, then to get a reference to the module do: `jl_value_t* mod = jl_eval_string(MyModName); Then you can pass mod as the argument to `jl_get_function`. On Tue, Jun 30, 2015 at 10:16 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Hello, I am trying to write some function in Julia which I will be able to call inside my C++ projects in Eclipse. In the documentation there is this http://julia-demo.readthedocs.org/en/latest/manual/embedding.html#calling-julia-functions example on how to call a function of julia from an existing module. So, what I have done was to create my own module where inside I included my function and then my understanding is that I should be using jl_new_module(jl_sym_t *name); instead of jl_base_module. But I am not sure (in case my assumption that this is the correct command is true) how to proper use it's syntax, as what I am trying is: jl_function_t * func = jl_get_function(jl_new_module(mymodule),myfunction); and I tried instead of mymodule also mymodule.jl and mymodule and mymodule.jl and in all the attempts I recieve an error that: mymodule was not declared in this scope Let me note beforehand that the module is being stored globaly as when I run julia on the terminal I can use it through
[julia-users] Re: Embedding Julia with C++
So, finally issue was solved by this answer here http://stackoverflow.com/questions/31051038/eclipse-c-having-trouble-with-including-a-file-with-extension-ji . On Thursday, June 25, 2015 at 3:33:45 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: But, sys.ji does exist in my folder of the path /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/ On Thursday, June 25, 2015 at 3:18:17 PM UTC+2, Scott Jones wrote: There is no .ji file anymore, although there is a command line option to produce it, --output-ji name On Monday, June 22, 2015 at 9:03:31 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am trying to embed Julia in C++ but I currently face some sort of issues. I am trying to follow the instructions shown here http://julia.readthedocs.org/en/latest/manual/embedding/. First things first, I run Ubuntu 15.04 and my Julia version is v. 0.3.2 (it's the version that is automatic installed when installing julia from ubuntu center). I use eclipse for my C++ projects, yet again I have the following issues, ac- cording to the instructions before trying to write any julia code in C or C++ you need first to: 1) link the julia library (assuming I undersand correctly this refers to libjulia.so), which should be located in Julia_DIR/usr/lib, yet again in my julia directory there is no folder under the name usr. I did though find a libjulia.so file in an other directory of my pc (/usr/lib/x86_64-linux-gnu/julia) and added this one instead. 2) include the path of julia.h which should be located in Julia_DIR/inclue/julia now again in my julia directory there are no such folders and in general there is nowhere in my pc any file such as julia.h. I did sth that is probably wrong and stupid but couldn't come up with anything else I downloaded this https://github.com/JuliaLang/julia and I included the location of where julia.h is located to eclipse as well with the direc- tions of all the other header files that were inculuded inside julia.h. Now when in Eclipse I am trying to compile and run a few simple julia commands having included julia.h i receive an error saying that there is no uv.h file in my system which is needed in one of the julia header files. I know that my whole approach is wrong, but yet again I couldn't find anywhere in my pc the proper folders or files in order to follow the steps that were sugges- ted in the julia website for running julia code inside C++. Any help would be much appreciated. Also, one more thing I wanted to ask is the following, in general writing Julia code inside a C++ code is limited? What I want to do in general is write a JuMP model inside C++, so in general is this possible, in the sense that by embedding Julia inside C++, will I be able to use all of the tools and code of Julia language or is this only limited to a cer- tain amount of commands and packages?
[julia-users] Re: Embedding Julia with C++
But, sys.ji does exist in my folder of the path /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/ On Thursday, June 25, 2015 at 3:18:17 PM UTC+2, Scott Jones wrote: There is no .ji file anymore, although there is a command line option to produce it, --output-ji name On Monday, June 22, 2015 at 9:03:31 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am trying to embed Julia in C++ but I currently face some sort of issues. I am trying to follow the instructions shown here http://julia.readthedocs.org/en/latest/manual/embedding/. First things first, I run Ubuntu 15.04 and my Julia version is v. 0.3.2 (it's the version that is automatic installed when installing julia from ubuntu center). I use eclipse for my C++ projects, yet again I have the following issues, ac- cording to the instructions before trying to write any julia code in C or C++ you need first to: 1) link the julia library (assuming I undersand correctly this refers to libjulia.so), which should be located in Julia_DIR/usr/lib, yet again in my julia directory there is no folder under the name usr. I did though find a libjulia.so file in an other directory of my pc (/usr/lib/x86_64-linux-gnu/julia) and added this one instead. 2) include the path of julia.h which should be located in Julia_DIR/inclue/julia now again in my julia directory there are no such folders and in general there is nowhere in my pc any file such as julia.h. I did sth that is probably wrong and stupid but couldn't come up with anything else I downloaded this https://github.com/JuliaLang/julia and I included the location of where julia.h is located to eclipse as well with the direc- tions of all the other header files that were inculuded inside julia.h. Now when in Eclipse I am trying to compile and run a few simple julia commands having included julia.h i receive an error saying that there is no uv.h file in my system which is needed in one of the julia header files. I know that my whole approach is wrong, but yet again I couldn't find anywhere in my pc the proper folders or files in order to follow the steps that were sugges- ted in the julia website for running julia code inside C++. Any help would be much appreciated. Also, one more thing I wanted to ask is the following, in general writing Julia code inside a C++ code is limited? What I want to do in general is write a JuMP model inside C++, so in general is this possible, in the sense that by embedding Julia inside C++, will I be able to use all of the tools and code of Julia language or is this only limited to a cer- tain amount of commands and packages?
Re: [julia-users] Embedding Julia with C++
Sorry didn't get your question. In general the problem is that Eclipse doesn't seem to be able to recognize/include this sys.ji file, and I don't know how to fix it. On Wednesday, June 24, 2015 at 6:52:52 PM UTC+2, Tony Kelman wrote: Are you running on latest master? This is probably another casualty of https://github.com/JuliaLang/julia/pull/11640 On Wednesday, June 24, 2015 at 10:39:40 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Νο, unfortunately it's not that. I just gave to the project the name juli I forgot to type the a and didn't bother correct it aftewrards, so the path name is correct. On Wednesday, June 24, 2015 at 4:31:20 PM UTC+2, Kevin Squire wrote: It's not just that julia is misspelled as juli in the path, is it? On Wednesday, June 24, 2015, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Didn't manage to make the code run. I am really wondering what I am missing here... On Wednesday, June 24, 2015 at 3:59:47 PM UTC+2, Isaiah wrote: I guess this is still a distro path issue. The following suggestion is not very general, but to at least get going, you could try: jl_init(/home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/ julia/) On Wed, Jun 24, 2015 at 9:38 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: I am simply trying to run the first example attached in the embedding documantation which is the following block of code: #include iostream #include julia.h using namespace std; int main() { /* required: setup the julia context */ jl_init(NULL); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers */ jl_atexit_hook(); return 0; } And when I try to run the program in eclipse (after having linked the library and defined the path of the header file) the above mentioned error message appeas which says: - System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found On Wednesday, June 24, 2015 at 3:31:50 PM UTC+2, Isaiah wrote: You probably need to call `jl_init(NULL)` at the beginning of the program. If you have not done so yet, I would suggest to read the embedding documentation: http://docs.julialang.org/en/release-0.3/manual/embedding/ and start with the embedding example in the source: https://github.com/JuliaLang/julia/blob/master/examples/embedding.c On Wed, Jun 24, 2015 at 9:05 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run it it throws me the following message: System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found Futhermore since I am really new to Julia I am not sure and I don't know a lot of the existing tools, is it possible to write a function in julia that takes as an argument some data creates a model and solves it and call this function from inside my c++ project? I am asking this as in the example in the link http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-julia-callback-functions-to-c attached by Isaiah with the qsort, the whole process is done inside julia framework. Whereas in my case I would be interested to write a julia program, like the one described above that I would be able to call as a function (I want it to solve a subproblem actually) inside my c++ project in eclipse. Is this relatively easy to be done? Because I think this would be the best approach for my case. On Tuesday, June 23, 2015 at 8:20:56 AM UTC+2, Jeff Waller wrote: Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you gain root on this host? If so you can get 0.3.9 via PPA. Or even better if you can get ahold of one of the nightly builds, then 0.4.x comes with julia_config.jl, which figures out all of the right compile flags automatically. You just have to cut and paste in a Makefile. But if no makefile, you can run it and know the necessary compile time flags.
[julia-users] Re: Embedding Julia with C++
I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run it it throws me the following message: System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found Futhermore since I am really new to Julia I am not sure and I don't know a lot of the existing tools, is it possible to write a function in julia that takes as an argument some data creates a model and solves it and call this function from inside my c++ project? I am asking this as in the example in the link http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-julia-callback-functions-to-c attached by Isaiah with the qsort, the whole process is done inside julia framework. Whereas in my case I would be interested to write a julia program, like the one described above that I would be able to call as a function (I want it to solve a subproblem actually) inside my c++ project in eclipse. Is this relatively easy to be done? Because I think this would be the best approach for my case. On Tuesday, June 23, 2015 at 8:20:56 AM UTC+2, Jeff Waller wrote: Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you gain root on this host? If so you can get 0.3.9 via PPA. Or even better if you can get ahold of one of the nightly builds, then 0.4.x comes with julia_config.jl, which figures out all of the right compile flags automatically. You just have to cut and paste in a Makefile. But if no makefile, you can run it and know the necessary compile time flags.
Re: [julia-users] Embedding Julia with C++
Νο, unfortunately it's not that. I just gave to the project the name juli I forgot to type the a and didn't bother correct it aftewrards, so the path name is correct. On Wednesday, June 24, 2015 at 4:31:20 PM UTC+2, Kevin Squire wrote: It's not just that julia is misspelled as juli in the path, is it? On Wednesday, June 24, 2015, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Didn't manage to make the code run. I am really wondering what I am missing here... On Wednesday, June 24, 2015 at 3:59:47 PM UTC+2, Isaiah wrote: I guess this is still a distro path issue. The following suggestion is not very general, but to at least get going, you could try: jl_init(/home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/ julia/) On Wed, Jun 24, 2015 at 9:38 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: I am simply trying to run the first example attached in the embedding documantation which is the following block of code: #include iostream #include julia.h using namespace std; int main() { /* required: setup the julia context */ jl_init(NULL); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers */ jl_atexit_hook(); return 0; } And when I try to run the program in eclipse (after having linked the library and defined the path of the header file) the above mentioned error message appeas which says: - System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found On Wednesday, June 24, 2015 at 3:31:50 PM UTC+2, Isaiah wrote: You probably need to call `jl_init(NULL)` at the beginning of the program. If you have not done so yet, I would suggest to read the embedding documentation: http://docs.julialang.org/en/release-0.3/manual/embedding/ and start with the embedding example in the source: https://github.com/JuliaLang/julia/blob/master/examples/embedding.c On Wed, Jun 24, 2015 at 9:05 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run it it throws me the following message: System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found Futhermore since I am really new to Julia I am not sure and I don't know a lot of the existing tools, is it possible to write a function in julia that takes as an argument some data creates a model and solves it and call this function from inside my c++ project? I am asking this as in the example in the link http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-julia-callback-functions-to-c attached by Isaiah with the qsort, the whole process is done inside julia framework. Whereas in my case I would be interested to write a julia program, like the one described above that I would be able to call as a function (I want it to solve a subproblem actually) inside my c++ project in eclipse. Is this relatively easy to be done? Because I think this would be the best approach for my case. On Tuesday, June 23, 2015 at 8:20:56 AM UTC+2, Jeff Waller wrote: Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you gain root on this host? If so you can get 0.3.9 via PPA. Or even better if you can get ahold of one of the nightly builds, then 0.4.x comes with julia_config.jl, which figures out all of the right compile flags automatically. You just have to cut and paste in a Makefile. But if no makefile, you can run it and know the necessary compile time flags.
Re: [julia-users] Re: Embedding Julia with C++
Didn't manage to make the code run. I am really wondering what I am missing here... On Wednesday, June 24, 2015 at 3:59:47 PM UTC+2, Isaiah wrote: I guess this is still a distro path issue. The following suggestion is not very general, but to at least get going, you could try: jl_init(/home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/ julia/) On Wed, Jun 24, 2015 at 9:38 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: I am simply trying to run the first example attached in the embedding documantation which is the following block of code: #include iostream #include julia.h using namespace std; int main() { /* required: setup the julia context */ jl_init(NULL); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers */ jl_atexit_hook(); return 0; } And when I try to run the program in eclipse (after having linked the library and defined the path of the header file) the above mentioned error message appeas which says: - System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found On Wednesday, June 24, 2015 at 3:31:50 PM UTC+2, Isaiah wrote: You probably need to call `jl_init(NULL)` at the beginning of the program. If you have not done so yet, I would suggest to read the embedding documentation: http://docs.julialang.org/en/release-0.3/manual/embedding/ and start with the embedding example in the source: https://github.com/JuliaLang/julia/blob/master/examples/embedding.c On Wed, Jun 24, 2015 at 9:05 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run it it throws me the following message: System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found Futhermore since I am really new to Julia I am not sure and I don't know a lot of the existing tools, is it possible to write a function in julia that takes as an argument some data creates a model and solves it and call this function from inside my c++ project? I am asking this as in the example in the link http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-julia-callback-functions-to-c attached by Isaiah with the qsort, the whole process is done inside julia framework. Whereas in my case I would be interested to write a julia program, like the one described above that I would be able to call as a function (I want it to solve a subproblem actually) inside my c++ project in eclipse. Is this relatively easy to be done? Because I think this would be the best approach for my case. On Tuesday, June 23, 2015 at 8:20:56 AM UTC+2, Jeff Waller wrote: Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you gain root on this host? If so you can get 0.3.9 via PPA. Or even better if you can get ahold of one of the nightly builds, then 0.4.x comes with julia_config.jl, which figures out all of the right compile flags automatically. You just have to cut and paste in a Makefile. But if no makefile, you can run it and know the necessary compile time flags.
Re: [julia-users] Re: Embedding Julia with C++
I am simply trying to run the first example attached in the embedding documantation which is the following block of code: #include iostream #include julia.h using namespace std; int main() { /* required: setup the julia context */ jl_init(NULL); /* run julia commands */ jl_eval_string(print(sqrt(2.0))); /* strongly recommended: notify julia that the program is about to terminate. this allows julia time to cleanup pending write requests and run all finalizers */ jl_atexit_hook(); return 0; } And when I try to run the program in eclipse (after having linked the library and defined the path of the header file) the above mentioned error message appeas which says: - System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found On Wednesday, June 24, 2015 at 3:31:50 PM UTC+2, Isaiah wrote: You probably need to call `jl_init(NULL)` at the beginning of the program. If you have not done so yet, I would suggest to read the embedding documentation: http://docs.julialang.org/en/release-0.3/manual/embedding/ and start with the embedding example in the source: https://github.com/JuliaLang/julia/blob/master/examples/embedding.c On Wed, Jun 24, 2015 at 9:05 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: I did download the 0.4 nightbuilt which includes the above mentioned files in the proper location, but now Eclipse is throwing me a different error I can not sort out how to overcome. When I try to run a small cpp file with a few julia comands Eclipse is compiling the file but when I try to run it it throws me the following message: System image file /home/kostas/workspace/juli/Debug/../lib/x86_64-linux-gnu/julia/sys.ji not found Futhermore since I am really new to Julia I am not sure and I don't know a lot of the existing tools, is it possible to write a function in julia that takes as an argument some data creates a model and solves it and call this function from inside my c++ project? I am asking this as in the example in the link http://docs.julialang.org/en/release-0.3/manual/calling-c-and-fortran-code/#passing-julia-callback-functions-to-c attached by Isaiah with the qsort, the whole process is done inside julia framework. Whereas in my case I would be interested to write a julia program, like the one described above that I would be able to call as a function (I want it to solve a subproblem actually) inside my c++ project in eclipse. Is this relatively easy to be done? Because I think this would be the best approach for my case. On Tuesday, June 23, 2015 at 8:20:56 AM UTC+2, Jeff Waller wrote: Embedded Julia is of particular interest to me. To answer your question, everything in Julia is available via embedded Julia. I would very much discourage use of version 0.3.2; avoid it if you can. I think that particular version has the uv.h problem which is fixed in later versions. Can you gain root on this host? If so you can get 0.3.9 via PPA. Or even better if you can get ahold of one of the nightly builds, then 0.4.x comes with julia_config.jl, which figures out all of the right compile flags automatically. You just have to cut and paste in a Makefile. But if no makefile, you can run it and know the necessary compile time flags.
[julia-users] Embedding Julia with C++
Hello, I am trying to embed Julia in C++ but I currently face some sort of issues. I am trying to follow the instructions shown here http://julia.readthedocs.org/en/latest/manual/embedding/. First things first, I run Ubuntu 15.04 and my Julia version is v. 0.3.2 (it's the version that is automatic installed when installing julia from ubuntu center). I use eclipse for my C++ projects, yet again I have the following issues, ac- cording to the instructions before trying to write any julia code in C or C++ you need first to: 1) link the julia library (assuming I undersand correctly this refers to libjulia.so), which should be located in Julia_DIR/usr/lib, yet again in my julia directory there is no folder under the name usr. I did though find a libjulia.so file in an other directory of my pc (/usr/lib/x86_64-linux-gnu/julia) and added this one instead. 2) include the path of julia.h which should be located in Julia_DIR/inclue/julia now again in my julia directory there are no such folders and in general there is nowhere in my pc any file such as julia.h. I did sth that is probably wrong and stupid but couldn't come up with anything else I downloaded this https://github.com/JuliaLang/julia and I included the location of where julia.h is located to eclipse as well with the direc- tions of all the other header files that were inculuded inside julia.h. Now when in Eclipse I am trying to compile and run a few simple julia commands having included julia.h i receive an error saying that there is no uv.h file in my system which is needed in one of the julia header files. I know that my whole approach is wrong, but yet again I couldn't find anywhere in my pc the proper folders or files in order to follow the steps that were sugges- ted in the julia website for running julia code inside C++. Any help would be much appreciated. Also, one more thing I wanted to ask is the following, in general writing Julia code inside a C++ code is limited? What I want to do in general is write a JuMP model inside C++, so in general is this possible, in the sense that by embedding Julia inside C++, will I be able to use all of the tools and code of Julia language or is this only limited to a cer- tain amount of commands and packages?
Re: [julia-users] Re: Errors while trying to use JuMP
So finally after upgrading my OS (actually switched to Ubuntu), JuMP finally works! Thanks a lot for all the help, probably I will come back with other questions regarding connecting C++ code with Julia in the future, but for the moment problem solved! On Monday, June 15, 2015 at 10:02:34 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, I'll proceed with the upgrades tomorrow and let you know. Thanks a lot for all the help so far hope tomorrow I will finally have JuMP working. On Monday, June 15, 2015 at 8:22:34 PM UTC+2, Tony Kelman wrote: I see. I'm a little surprised a distribution chose to package a prerelease (but then again there was only one bugfix release between 0.2 and 0.3, so maybe not). I have no idea why installing git would try to do execvp on python3, but that looks like you need to install python3? According to http://www.linuxmint.com/oldreleases.php, Linux Mint 16 has been Obsolete since July 2014 so you may also need to upgrade to a supported version of the distribution for the package manager to work properly. I'm not sure. On Monday, June 15, 2015 at 10:57:21 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: The 0.3-prerelease version of Julia was installed in my machine when I tried to isntall julia from the terminal by typing sudo apt-get install julia. I run linux mint 16 on my laptop. When I try to apt-get install git, I receive the following error: Traceback (most recent call last): File /usr/lib/command-not-found, line 21, in module os.execvp(python3, [sys.argv[0]] + sys.argv) File /usr/lib/python2.7/os.py, line 344, in execvp _execvpe(file, args) File /usr/lib/python2.7/os.py, line 380, in _execvpe func(fullname, *argrest) OSError: [Errno 2] No such file or directory On Monday, June 15, 2015 at 7:44:51 PM UTC+2, Tony Kelman wrote: Which Linux distribution are you using? That error most likely means you don't have git installed, you need to manually install it through your distribution's package manager (apt-get, yum, pacman, zypper, etc). I'm a little surprised Pkg commands were able to work from the 0.3-prerelease version of Julia that you had been using (where did that come from anyway?). I think there was a git version check added in to the initialization of Pkg since the previous version you had been using. On Monday, June 15, 2015 at 10:20:03 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: I downloaded and extracted the version that you put in the link, but for some reason now, when I run Julia on terminal the pck command doesn't seem to work. This is the msg I get when I try to use any command related with pkd: Pkg.status() ERROR: could not spawn `git version`: no such file or directory (ENOENT) in _jl_spawn at process.jl:217 in spawn at process.jl:348 in open at ./process.jl:397 in readbytes at ./process.jl:461 in version at ./pkg/git.jl:34 in init at ./pkg/dir.jl:32 in cd at pkg/dir.jl:25 in status at pkg.jl:28 (repeats 2 times) On Sunday, June 14, 2015 at 10:57:13 PM UTC+2, Tony Kelman wrote: Check the list of required built tools here https://github.com/JuliaLang/julia#required-build-tools-and-external-libraries if you want to build from source. Note that unless you're contributing to Julia development, you should build from the release-0.3 stable branch. You shouldn't have to build from source though, have you tried the generic Linux binaries from http://julialang.org/downloads/ ? Download and extract https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.9-linux-x86_64.tar.gz and it should work right away. On Sunday, June 14, 2015 at 7:16:46 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do finally manage to sucessfully install julia I will come back to you! On Sunday, June 14, 2015 at 4:03:35 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). make[1]: *** [gmp-6.0.0/config.status] Error 1 make: *** [julia-deps] Error 2 On Sunday, June 14, 2015 at 2:57:29 PM UTC+2, Miles Lubin wrote: You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: The output of versioninfo() is the following: Julia Version 0.3.0
Re: [julia-users] Re: Errors while trying to use JuMP
The 0.3-prerelease version of Julia was installed in my machine when I tried to isntall julia from the terminal by typing sudo apt-get install julia. I run linux mint 16 on my laptop. When I try to apt-get install git, I receive the following error: Traceback (most recent call last): File /usr/lib/command-not-found, line 21, in module os.execvp(python3, [sys.argv[0]] + sys.argv) File /usr/lib/python2.7/os.py, line 344, in execvp _execvpe(file, args) File /usr/lib/python2.7/os.py, line 380, in _execvpe func(fullname, *argrest) OSError: [Errno 2] No such file or directory On Monday, June 15, 2015 at 7:44:51 PM UTC+2, Tony Kelman wrote: Which Linux distribution are you using? That error most likely means you don't have git installed, you need to manually install it through your distribution's package manager (apt-get, yum, pacman, zypper, etc). I'm a little surprised Pkg commands were able to work from the 0.3-prerelease version of Julia that you had been using (where did that come from anyway?). I think there was a git version check added in to the initialization of Pkg since the previous version you had been using. On Monday, June 15, 2015 at 10:20:03 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: I downloaded and extracted the version that you put in the link, but for some reason now, when I run Julia on terminal the pck command doesn't seem to work. This is the msg I get when I try to use any command related with pkd: Pkg.status() ERROR: could not spawn `git version`: no such file or directory (ENOENT) in _jl_spawn at process.jl:217 in spawn at process.jl:348 in open at ./process.jl:397 in readbytes at ./process.jl:461 in version at ./pkg/git.jl:34 in init at ./pkg/dir.jl:32 in cd at pkg/dir.jl:25 in status at pkg.jl:28 (repeats 2 times) On Sunday, June 14, 2015 at 10:57:13 PM UTC+2, Tony Kelman wrote: Check the list of required built tools here https://github.com/JuliaLang/julia#required-build-tools-and-external-libraries if you want to build from source. Note that unless you're contributing to Julia development, you should build from the release-0.3 stable branch. You shouldn't have to build from source though, have you tried the generic Linux binaries from http://julialang.org/downloads/ ? Download and extract https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.9-linux-x86_64.tar.gz and it should work right away. On Sunday, June 14, 2015 at 7:16:46 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do finally manage to sucessfully install julia I will come back to you! On Sunday, June 14, 2015 at 4:03:35 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). make[1]: *** [gmp-6.0.0/config.status] Error 1 make: *** [julia-deps] Error 2 On Sunday, June 14, 2015 at 2:57:29 PM UTC+2, Miles Lubin wrote: You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I already deleted the Docile package from the julia directory and reinstalled it, but again with no luck and also again the old version of 0.1 was installed. On Sunday, June 14, 2015 at 2:34:30 PM UTC+2, Miles Lubin wrote: What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat
Re: [julia-users] Re: Errors while trying to use JuMP
I downloaded and extracted the version that you put in the link, but for some reason now, when I run Julia on terminal the pck command doesn't seem to work. This is the msg I get when I try to use any command related with pkd: Pkg.status() ERROR: could not spawn `git version`: no such file or directory (ENOENT) in _jl_spawn at process.jl:217 in spawn at process.jl:348 in open at ./process.jl:397 in readbytes at ./process.jl:461 in version at ./pkg/git.jl:34 in init at ./pkg/dir.jl:32 in cd at pkg/dir.jl:25 in status at pkg.jl:28 (repeats 2 times) On Sunday, June 14, 2015 at 10:57:13 PM UTC+2, Tony Kelman wrote: Check the list of required built tools here https://github.com/JuliaLang/julia#required-build-tools-and-external-libraries if you want to build from source. Note that unless you're contributing to Julia development, you should build from the release-0.3 stable branch. You shouldn't have to build from source though, have you tried the generic Linux binaries from http://julialang.org/downloads/ ? Download and extract https://julialang.s3.amazonaws.com/bin/linux/x64/0.3/julia-0.3.9-linux-x86_64.tar.gz and it should work right away. On Sunday, June 14, 2015 at 7:16:46 AM UTC-7, Kostas Tavlaridis-Gyparakis wrote: Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do finally manage to sucessfully install julia I will come back to you! On Sunday, June 14, 2015 at 4:03:35 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). make[1]: *** [gmp-6.0.0/config.status] Error 1 make: *** [julia-deps] Error 2 On Sunday, June 14, 2015 at 2:57:29 PM UTC+2, Miles Lubin wrote: You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I already deleted the Docile package from the julia directory and reinstalled it, but again with no luck and also again the old version of 0.1 was installed. On Sunday, June 14, 2015 at 2:34:30 PM UTC+2, Miles Lubin wrote: What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Saturday, June 13, 2015 at 2:50:56 PM UTC+2, Tim Holy wrote: Check to see what Pkg.status() says. You may have another package that is pinning Docile at 0.1? --Tim On Saturday, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO
Re: [julia-users] Re: Errors while trying to use JuMP
The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I already deleted the Docile package from the julia directory and reinstalled it, but again with no luck and also again the old version of 0.1 was installed. On Sunday, June 14, 2015 at 2:34:30 PM UTC+2, Miles Lubin wrote: What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Saturday, June 13, 2015 at 2:50:56 PM UTC+2, Tim Holy wrote: Check to see what Pkg.status() says. You may have another package that is pinning Docile at 0.1? --Tim On Saturday, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove How can I update from terminal to julia 0.4 myself? Also I am not quiet sure how to use clone command to force julia Dolice to the latest version (sorry I am a real noob). On Saturday, June 13, 2015 at 1:25:05 PM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 10:03 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Run update after installing Docile. I'm on 0.4 so I dont know what version of Docile the stable version installs, but try using `Pkg.pin()` to force a specific version of the package. Unregistered packages can be installed via the url, so you can try Pkg.clone(git://example.com/path/to/Package.jl.git) SVAKSHA ॥ http://about.me/svaksha ॥
Re: [julia-users] Re: Errors while trying to use JuMP
Ok fixed that one, but now I have another installation problem, I receive the following error: /bin/sh: 2: cmake: not found make[1]: *** [libgit2/build/Makefile] Error 127 make: *** [julia-deps] Error 2 Once I do finally manage to sucessfully install julia I will come back to you! On Sunday, June 14, 2015 at 4:03:35 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). make[1]: *** [gmp-6.0.0/config.status] Error 1 make: *** [julia-deps] Error 2 On Sunday, June 14, 2015 at 2:57:29 PM UTC+2, Miles Lubin wrote: You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I already deleted the Docile package from the julia directory and reinstalled it, but again with no luck and also again the old version of 0.1 was installed. On Sunday, June 14, 2015 at 2:34:30 PM UTC+2, Miles Lubin wrote: What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Saturday, June 13, 2015 at 2:50:56 PM UTC+2, Tim Holy wrote: Check to see what Pkg.status() says. You may have another package that is pinning Docile at 0.1? --Tim On Saturday, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove How can I update from terminal to julia 0.4 myself? Also I am not quiet sure how to use clone command to force julia Dolice to the latest version (sorry I am a real noob). On Saturday, June 13, 2015 at 1:25:05 PM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 10:03 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Run update after installing Docile. I'm on 0.4 so I dont know what version of Docile the stable version installs, but try using `Pkg.pin()` to force a specific version of the package. Unregistered packages can be installed via the url, so you can try Pkg.clone(git://example.com/path/to/Package.jl.git) SVAKSHA ॥ http://about.me/svaksha ॥
Re: [julia-users] Re: Errors while trying to use JuMP
Ok, so after deleting all the julia files from my laptop and downloading the latest version from github ( git clone git://github.com/JuliaLang/julia.git ), when I try to run make in the terminal after a huge run of 50 minutes in the end the following msg is desplayed in my terminal: checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). make[1]: *** [gmp-6.0.0/config.status] Error 1 make: *** [julia-deps] Error 2 On Sunday, June 14, 2015 at 2:57:29 PM UTC+2, Miles Lubin wrote: You're using a prerelease version of 0.3 from nearly a year ago. Not sure how this came to be installed, but you'll need to update to 0.3.0 release or later. On Jun 14, 2015 2:38 PM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: The output of versioninfo() is the following: Julia Version 0.3.0-rc1+54 Commit 4e92487 (2014-07-17 05:40 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz WORD_SIZE: 64 BLAS: libblas.so.3 LAPACK: liblapack.so.3 LIBM: libopenlibm I already deleted the Docile package from the julia directory and reinstalled it, but again with no luck and also again the old version of 0.1 was installed. On Sunday, June 14, 2015 at 2:34:30 PM UTC+2, Miles Lubin wrote: What is the output of versioninfo() (at the Julia command line)? Also, try deleting your ~/.julia directory and reinstalling the packages you need. On Saturday, June 13, 2015 at 3:11:16 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Saturday, June 13, 2015 at 2:50:56 PM UTC+2, Tim Holy wrote: Check to see what Pkg.status() says. You may have another package that is pinning Docile at 0.1? --Tim On Saturday, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove How can I update from terminal to julia 0.4 myself? Also I am not quiet sure how to use clone command to force julia Dolice to the latest version (sorry I am a real noob). On Saturday, June 13, 2015 at 1:25:05 PM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 10:03 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Run update after installing Docile. I'm on 0.4 so I dont know what version of Docile the stable version installs, but try using `Pkg.pin()` to force a specific version of the package. Unregistered packages can be installed via the url, so you can try Pkg.clone(git://example.com/path/to/Package.jl.git) SVAKSHA ॥ http://about.me/svaksha ॥
Re: [julia-users] Re: Errors while trying to use JuMP
Here is the outcome of Pkg.status(): Pkg.status() 5 required packages: - CPLEX 0.0.9 - Docile0.1.0 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 26 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Saturday, June 13, 2015 at 2:50:56 PM UTC+2, Tim Holy wrote: Check to see what Pkg.status() says. You may have another package that is pinning Docile at 0.1? --Tim On Saturday, June 13, 2015 04:45:12 AM Kostas Tavlaridis-Gyparakis wrote: When i run update after I install Dolice there is nothing new: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove How can I update from terminal to julia 0.4 myself? Also I am not quiet sure how to use clone command to force julia Dolice to the latest version (sorry I am a real noob). On Saturday, June 13, 2015 at 1:25:05 PM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 10:03 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Run update after installing Docile. I'm on 0.4 so I dont know what version of Docile the stable version installs, but try using `Pkg.pin()` to force a specific version of the package. Unregistered packages can be installed via the url, so you can try Pkg.clone(git://example.com/path/to/Package.jl.git) SVAKSHA ॥ http://about.me/svaksha ॥
[julia-users] Re: Errors while trying to use JuMP
Pkg.add(Docile) INFO: Nothing to be done INFO: METADATA is out-of-date — you may not have the latest version of Docile INFO: Use `Pkg.update()` to get the latest versions of your packages On Saturday, June 13, 2015 at 9:09:26 AM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Here is the output I get: julia Pkg.status() 4 required packages: - CPLEX 0.0.9 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 27 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - Docile0.1.0 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Friday, June 12, 2015 at 5:52:49 PM UTC+2, Joey Huchette wrote: What’s the output of Pkg.status()? It seems like an issue with Docile, not JuMP. On Friday, June 12, 2015 at 9:25:50 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am really new to Julia and not the best programmer mysefl. I run linux mint 16 and I installed julia via terminal (sudo apt-get install julia ). Then when I run Julia on my terminal, while the JuMP package is installed sth that I believe the following two commands on my terminal prove: julia Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove julia Pkg.add(JuMP) INFO: Nothing to be done Then when I try to use JuMP I get the following error msg: julia using JuMP ERROR: Block not defined in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:51 while loading /home/kostas/.julia/v0.3/Docile/src/types.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/Docile/src/Docile.jl, in expression starting on line 19 while loading /home/kostas/.julia/v0.3/DataStructures/src/DataStructures.jl, in expression starting on line 48 while loading /home/kostas/.julia/v0.3/Graphs/src/Graphs.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/coloring.jl, in expression starting on line 1 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/ReverseDiffSparse.jl, in expression starting on line 20 while loading /home/kostas/.julia/v0.3/JuMP/src/JuMP.jl, in expression starting on line 13 Finally the msg I receive for Block is the following: julia Pkg.checkout(Block) ERROR: Block is not a git repo in checkout at pkg/entry.jl:190 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in cd at pkg/dir.jl:28 in checkout at pkg.jl:33
[julia-users] Re: Errors while trying to use JuMP
Here is the output I get: julia Pkg.status() 4 required packages: - CPLEX 0.0.9 - Images0.4.37 - Jewel 1.0.4 - JuMP 0.5.8 27 additional packages: - AnsiColor 0.0.2 - BinDeps 0.3.9 - Calculus 0.1.4 - Color 0.4.5 - Compat0.4.4 - Compose 0.3.12 - DataStructures0.3.9 - Docile0.1.0 - DualNumbers 0.1.0 - FactCheck 0.1.2 - FixedPointNumbers 0.0.7 - Graphics 0.1.0 - Graphs0.4.3 - Iterators 0.1.7 - JSON 0.4.0 - JuliaParser 0.6.2 - LNR 0.0.1 - Lazy 0.8.4 - Markdown 0.3.0 - MathProgBase 0.3.1 - Requires 0.1.2 - ReverseDiffSparse 0.1.2 - SHA 0.0.4 - SIUnits 0.0.3 - TexExtensions 0.0.2 - URIParser 0.0.5 - Zlib 0.1.8 On Friday, June 12, 2015 at 5:52:49 PM UTC+2, Joey Huchette wrote: What’s the output of Pkg.status()? It seems like an issue with Docile, not JuMP. On Friday, June 12, 2015 at 9:25:50 AM UTC-4, Kostas Tavlaridis-Gyparakis wrote: Hello, I am really new to Julia and not the best programmer mysefl. I run linux mint 16 and I installed julia via terminal (sudo apt-get install julia ). Then when I run Julia on my terminal, while the JuMP package is installed sth that I believe the following two commands on my terminal prove: julia Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove julia Pkg.add(JuMP) INFO: Nothing to be done Then when I try to use JuMP I get the following error msg: julia using JuMP ERROR: Block not defined in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:51 while loading /home/kostas/.julia/v0.3/Docile/src/types.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/Docile/src/Docile.jl, in expression starting on line 19 while loading /home/kostas/.julia/v0.3/DataStructures/src/DataStructures.jl, in expression starting on line 48 while loading /home/kostas/.julia/v0.3/Graphs/src/Graphs.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/coloring.jl, in expression starting on line 1 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/ReverseDiffSparse.jl, in expression starting on line 20 while loading /home/kostas/.julia/v0.3/JuMP/src/JuMP.jl, in expression starting on line 13 Finally the msg I receive for Block is the following: julia Pkg.checkout(Block) ERROR: Block is not a git repo in checkout at pkg/entry.jl:190 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in cd at pkg/dir.jl:28 in checkout at pkg.jl:33
Re: [julia-users] Re: Errors while trying to use JuMP
Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: Cloning cache of Docile from git://github.com/MichaelHatherly/Docile.jl.git INFO: Installing Docile v0.1.0 On Saturday, June 13, 2015 at 11:57:58 AM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 9:44 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com javascript: wrote: Only problem is that when I run the updtate command in julia I receive a msg that there is nothing to be upgraded: Try the update command after you manually delete the Docile package from `~/.julia/.cache` and `v0.4/` folders. -- Do check the julia version your system has. Before doing this take a backup of the `.julia` folder, just in case... HTH, SVAKSHA ॥ http://about.me/svaksha ॥
Re: [julia-users] Re: Errors while trying to use JuMP
Also, if I try to update Dolice (after having deleting it from the above mentioned directories) by first typing Pkg.add(Dolice) I receive following error: Pkg.add(Docile) ERROR: unknown package Docile in wait at task.jl:51 in sync_end at ./task.jl:306 in add at pkg/entry.jl:314 in add at pkg/entry.jl:71 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in __cd#226__ at ./pkg/dir.jl:28 in add at pkg.jl:20 I can only install it if I directly run the Pkg.update() command, which does install v. 0.1 as mentioned above On Saturday, June 13, 2015 at 12:03:17 PM UTC+2, Kostas Tavlaridis-Gyparakis wrote: Followed your recommendation but have to note the following things: 1) I have Julia v0.3 even if I just downloaded Julia this week 2) after deleting Dolice and running update command again the version 0.1 was installed: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: Cloning cache of Docile from git:// github.com/MichaelHatherly/Docile.jl.git INFO: Installing Docile v0.1.0 On Saturday, June 13, 2015 at 11:57:58 AM UTC+2, Svaksha wrote: On Sat, Jun 13, 2015 at 9:44 AM, Kostas Tavlaridis-Gyparakis kostas.t...@gmail.com wrote: Only problem is that when I run the updtate command in julia I receive a msg that there is nothing to be upgraded: Try the update command after you manually delete the Docile package from `~/.julia/.cache` and `v0.4/` folders. -- Do check the julia version your system has. Before doing this take a backup of the `.julia` folder, just in case... HTH, SVAKSHA ॥ http://about.me/svaksha ॥
[julia-users] Re: Errors while trying to use JuMP
Only problem is that when I run the updtate command in julia I receive a msg that there is nothing to be upgraded: Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove On Saturday, June 13, 2015 at 11:22:07 AM UTC+2, Seth wrote: Might not be related, but your Docile package is way out of date. It's currently at 0.5.6, and you appear to be running 0.1.0. On Saturday, June 13, 2015 at 3:36:39 AM UTC-5, Kostas Tavlaridis-Gyparakis wrote: Pkg.add(Docile) INFO: Nothing to be done INFO: METADATA is out-of-date — you may not have the latest version of Docile INFO: Use `Pkg.update()` to get the latest versions of your packages - Docile0.1.0
[julia-users] Errors while trying to use JuMP
Hello, I am really new to Julia and not the best programmer mysefl. I run linux mint 16 and I installed julia via terminal (sudo apt-get install julia ). Then when I run Julia on my terminal, while the JuMP package is installed sth that I believe the following two commands on my terminal prove: julia Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove julia Pkg.add(JuMP) INFO: Nothing to be done Then when I try to use JuMP I get the following error msg: julia using JuMP ERROR: Block not defined in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:54 in include at ./boot.jl:245 in include_from_node1 at ./loading.jl:128 in reload_path at loading.jl:152 in _require at loading.jl:67 in require at loading.jl:51 while loading /home/kostas/.julia/v0.3/Docile/src/types.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/Docile/src/Docile.jl, in expression starting on line 19 while loading /home/kostas/.julia/v0.3/DataStructures/src/DataStructures.jl, in expression starting on line 48 while loading /home/kostas/.julia/v0.3/Graphs/src/Graphs.jl, in expression starting on line 2 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/coloring.jl, in expression starting on line 1 while loading /home/kostas/.julia/v0.3/ReverseDiffSparse/src/ReverseDiffSparse.jl, in expression starting on line 20 while loading /home/kostas/.julia/v0.3/JuMP/src/JuMP.jl, in expression starting on line 13 Finally the msg I receive for Block is the following: julia Pkg.checkout(Block) ERROR: Block is not a git repo in checkout at pkg/entry.jl:190 in anonymous at pkg/dir.jl:28 in cd at ./file.jl:20 in cd at pkg/dir.jl:28 in checkout at pkg.jl:33