Comments (8)
Hey @MikiVanousek,
I tried your example on a fresh NixOS (latest) installation and it works for me. How did you install julia and GR? I fetched Julia from the official home page (binary release) since the Julia package in NixOS is currently broken. I installed GR with the Julia package manager in the REPL (]
, add GR
).
from gr.
I used the Nixpkgs package julia_17-bin
, which works, with the notable exception of Julia packages that ship binaries linked against specific dependency paths that are different on NixOS.
As for just downloading of the binary form the website, I somehow failed at this task. Did you do something besides running the binary in /bin of the downloaded folder? I get:
bash: /home/miki/dow/julia-1.7.3/bin/julia: No such file or directory
even though
/home/miki/dow/julia-1.7.3/bin/julia
from gr.
In any case, I don't think there should be much of a difference between the manually downloaded Julia binary and the Nixpkgs one. Would you try it with the NixOS binary? You can obtain it with nix-shell -p julia-stable-bin
.
from gr.
dow/julia-1.7.3/bin
❯ nix-shell -p julia-stable-bin
dow/julia-1.7.3/bin via ❄️ impure (shell)
❯ julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.7.3 (2022-05-06)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.7) pkg> add GR
Updating registry at `~/.local/share/julia/registries/General.toml`
Resolving package versions...
No Changes to `~/.local/share/julia/environments/v1.7/Project.toml`
No Changes to `~/.local/share/julia/environments/v1.7/Manifest.toml`
julia> using GR
julia> histogram(rand(1000))
env: ‘/home/miki/.local/share/julia/artifacts/261454d51a07163528d01f640e8349c372ac05b2/bin/gksqt’: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application
GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
GKS: GKS not in proper state. GKS must be either in the state WSAC or SGOP in routine POLYLINE
from gr.
with the notable exception of Julia packages that ship binaries linked against specific dependency paths that are different on NixOS.
The problem is caused by a hard-coded ELF interpreter path in the GR binaries. gksqt
expects the interpreter to be located at /lib64/ld-linux-x86-64.so.2
which is not the case under NixOS. The official Julia binaries have the same problem, so for a quick and dirty fix I simply created a symlink at /lib64/ld-linux-x86-64.so.2
which was also the reason that gksqt
started working.
from gr.
So the qksqt
application either needs to be patched (see https://nixos.wiki/wiki/Packaging/Binaries#The_Dynamic_Loader) or GR should be installed from source. GR.jl can pick up an existing GR installation. However, I am new to NixOS. Is it possible to simple run a make install
or must everything be installed with the Nix package manager?
from gr.
I am not that well versed in NixOS packaging, but I think the best/most robust way would be to use Nix to package GR, which if you know what you are doing should not be too difficult.
from gr.
I have no experience with NixOS or Nix at all. For this issue, I set up my first virtual machine with NixOS. It would be great to have a guide for this.
from gr.
Related Issues (20)
- Feature Request: Axis Shift/Offset Option HOT 1
- How can I use gr3.drawcubemesh? HOT 6
- LaTeX exponent position
- feature request: add Fira Math to the fontlist HOT 3
- [Enhancement] More control on colorbar, e.g. colorbar_ticks and colorbar_width HOT 1
- Reasons why text length is limited to 131 bytes (either latin1 or utf8) ? HOT 3
- [BUG] "Send: no error" display when reopen a plot. HOT 2
- incorrect normalization of cos(rotation), sin(rotation) in world coordinate transforms HOT 1
- [Discussion] What should I choose, OpenGL or GR3 HOT 6
- Get bbox box of objects HOT 2
- Qt 6 support ? HOT 1
- Remove that camera rotation and tilt are integer degrees HOT 4
- GR is slower than MPL HOT 7
- Innacurate Drawing Of Some Chart Elements HOT 1
- Confirm file successfully written to or not - troubleshooting Julia/Plots/CI issue HOT 1
- Provide a verbatim mode
- soname versioning HOT 1
- Replace gethostbyname with getaddrinfo HOT 2
- Rotating polar plot coordinates? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr.