-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider installing gnuplot along with Gaston using Julia's artifacts system #135
Comments
I don't consider this a bug in Gaston. The documentation clearly states that gnuplot is required. When gnuplot is properly installed, Gaston works fine in Windows. I will leave this bug open (with edited title) as a reminder that I need to study the artifacts scaffolding and see if it makes sense for Gaston. It's very low priority for me, though, but I will accept a pull request implementing this. |
get the same issued when precompiling gaston. but without poping up alarm stacktrace. after "using Gaston" repeated its works fine. what is Operating System are you used? |
@mbaz or anyone who's willing to give a try
for url: https://excellmedia.dl.sourceforge.net/project/gnuplot/gnuplot/5.4.0/gnuplot-5.4.0.tar.gz
The binary was created, although there were some dependencies unfulfilled If someone has enough data, and is willing to give it a go, I hope the above instructions come in handy |
Does this procedure build binaries for Windows and Mac too? |
Yes
Yes |
Although I had to cancel that one as I've low on internet data here... |
Thanks for the pointers! I will give it a shot soon. |
I'm not going to build for Mac... I'm not willing to agree to any restrictions and legal terms. |
I wanted to implement Gaston in a few Pluto tutorials... although I can't distribute it without artifacts |
No problem... |
@mbaz Actually why not just put something like
Since the installation process for Windows and Mac is not going to change |
@clad26 That's an interesting thought! Questions:
|
5.4.0 for windows was in their testing repo, release candidate 1 is out, it seems It seems that to install brew, we need sudo Automatically installing for the user is a better option here. It'd be good if there existed a mechanism to check if user already had a version >= 5.2.8... I'm sure run( `gnuplot --version` ) can work here... In short, installing the binaries/Artifacts, if the first run gives an error that gnuplot is not installed makes sense!If the user says he doesn't want to install, throw an error! |
@mbaz Thanks for taking interest! |
@clad26 Thanks for your help! I'll try to get something working soon. |
Much appreciated! |
Also, if you're following the Windows method, if the user has an outdated version, it might be better to remove the old version! Also, isn't it possible to just use the Windows build AS THE ARTIFACT? |
Artifact using BinaryBuilder is only required for Linux/FreeBSD For MAC/OSX, you might wanna look into https://github.com/JuliaPackaging/Homebrew.jl |
This way we can have the artifacts for all of Mac/OSX, Windows and Linux/FreeBSD.... |
From the bin folder of gnuplot windows build @mbaz I think you can find the cairo, pango, qt libxpm zlib lua libpng libwebp libjpgeg libgif libtiff glib and others on https://github.com/JuliaPackaging/Yggdrasil/ |
@mbaz I hope the above information helps |
@clad26 This is very useful indeed, thanks a lot! It looks like a non-trivial amount of work, though. I think I'll start with the bare minimum dependencies (i.e. no WxWidgets): I'm thinking Qt, X11, GIF, PNG, SVG, Canvas, Cairo and maybe a couple of others. I can then add other dependencies, if needed and as time allows. I am not comfortable with modifying a user's installation, though. My plan is to have Gaston use the Julia artifact and ignore any pre-installed programs. For Windows, just including the official binary as an artifact looks like the best solution. Still, I'm sure I have seen 5.4.0 Windows binaries, because I know I tested it before the latest Gaston release. I'll take a look and see if I can find it. For Mac, it looks like the homebrew.jl package is the way to go. I'll give this lower priority, though, and leave it for a future release. |
I'm sure you've heard of CUDA.jl. How about a similar mechanism for Gaston too? Ofcourse, most Julia beginners wouldn't even think about it, while more advanced Julia users will have more freedom |
I don't think my Fedora build provides me with wxt either, so that isn't a problem personally for me. qt and x11 are sufficient for anyone. |
That'd be nice, but I don't want to try to do too much. I don't have a lot of time to devote to this right now. I prefer to get something out that works, and fine-tune over the next releases. |
Also, the size of the collective artifacts matters.... It'd be great if you can keep it somewhere around 20-60mb! |
@mbaz Any chance that, if you're making the binary for linux, then can you build gnuplot 5.5? |
@mbaz Any update on this? Were you able to get atleast the qt terminal compiled with BinaryBuilder? |
@mbaz Any plans to make the artifact system a milestone for the 1.1 release?🙂 |
@clad26 I've had little time to work on this, but I hope to, yes. |
@mbaz I heard Plots was getting a Gaston backend, which I think makes the artifacts all the more important! |
It is a lot of work, and I'm unlikely to do it in the short to medium term. Another reason I'm not enthusiastic about it is that it is trivially easy to install Gnuplot in all supported platforms. I will consider a pull request if someone does the work, though. |
@mbaz Whats your experience with wxt terminal? |
Wxt is a solid terminal in my experience. |
I tried the wxt terminal on Windows yesterday |
Question: let's say a user has their own installation of Gnuplot, supporting the Windows terminal, Qt, etc. Then they install Gaston with your artifact, which pulls your gnuplot binaries. Which version of Gnuplot will Gaston use in this case? |
It'll use the artifacts, I guess
I don't wanna install CUDA twice...Its really big... so in .julia/configure/startup.jl I always do I propose something similar for Gaston |
I'll properly look into how to do this, once the binaries are built |
By the way, may I ask, are you a MAC user? |
I can go with that scheme, but ideally, it would be opt-in rather than opt-out. Gnuplot is so easy to install in all major platforms, that I think using the artifact will be the less-common scenario. I don't use Macs at all; I use Linux. |
If your distribution provides it, its great... I think the main problem here for me was kinda personal. I wrote a set of tutorials using Gaston for bar plots... |
Also, if in case their own build is somewhat messed up, thats another reason By the way, I've the book Gnuplot in Action, but I really never read it from top to bottom. I only open it, when I need to learn something very specific, and its not in Docs, Examples, Stackoverflow, etc, atleast not in a way I can understand. |
I agree that some users might benefit from having the binary artifacts, and that's why I'll add this feature if it has the necessary flexibility. Thanks for working on it! |
@mbaz Some problems here and there.... Its almost there... I'd say anytime this month Problems on Windows 32bit. The latest version of gnuplot 5.4.1 for only 64-bit Windows. Even Chocolatey does that. I'd like to hear your opinions on this! |
This is the error I get when I try using Gaston
The text was updated successfully, but these errors were encountered: