To install gnuplot with x11, I used the following command:
brew install gnuplot --with-x11
I am running OS X EL Capitan Version 10.11.6. When I run gnuplot, I obtain:
G N U P L O T Version 5.0 patchlevel 5 last modified 2016-10-02
Copyright (C) 1986-1993, 1998, 2004, 2007-2016 Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info faq, bugs, etc: type "help FAQ" immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'unknown'
I then tried to plot something simple like sin(x) and I get the error
gnuplot: unable to open display ''
gnuplot: X11 aborted.
Any advice?
First of all, if you haven't yet, you have to type the command
set term x11
this is fundamental, because without having set a term you can't have an output.
Then, if it's still not working, try uninstalling gnuplot and reinstall with another terminal, e.g. the qt terminal (which is good also because if you have a 3D plot you can interact with it), by using the command
brew uninstall gnuplot
brew install gnuplot --with-qt
Alternatively, if you really need x11 as terminal you can have a look here on AskDifferent (seem someone has already had a similar issue).
Also, typing set term could be helpful and give you the entire list of gnuplot terminal pre-installed, and remember, if you have a question check before the GNUPLOT guide, which is accessible with the command help "ANYTHING_INSIDE_GNUPLOT", in your case:
help term
Make sure you've XQuartz installed when installing with --with-x11.
Otherwise try reinstalling gnuplot with QT, e.g.
brew reinstall gnuplot --with-qt
I had to logout and login again after installing XQuartz before set term x11 worked.
I am new to Cassandra and trying to setup it on Linux version 2.6.18-404.el5 with Java 8 64 bit. I have tried Cassandra version 3.3. and 2.2.5 and getting an error:
cqlsh
File "./cqlsh.py", line 686
ssl_options=sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None, ^
SyntaxError: invalid syntax
It is reporting a syntax error on 'if'
You need to install python 2.7. Probably in parallel to your system installation so not to break your Linux distribution. For Centos 6.5 the instructions here worked like a charm for me. As Centos is a Redhat clone it should work for you as well.
Install dependencies
Download the python 2.7 sources.
Configure and build python; note that you have to make altinstall so not to mess with your system installation of python!
Verify the installation: try python2.7 --version, if everything worked out OK this will print the version info of your python 2.7 installation
Then edit the cqlsh shell script. It contains just one code line. At the start of that line replace python with python2.7, save the file, and now you should be able to run cqlsh.
I am using Protege version 4.0(Build 115) on OS X Yosemite Version 10.10.4. While using OWLviz in Protege, I am getting a DOT error. I already installed Graphviz for OS X but its still not working. Can you suggest me which version of Graphviz I should use? And What are the step to install it?
Check whether the path is set to correct DOT file, and then restart.
I have tried to compile gnuplot 5.0. Once finish compile I check for available terminals. There in the list I could not see terminal png or pngcairo. I also tried some options given in the release note for version 5 (http://www.gnuplot.info/ReleaseNotes_5_0.html). Unfortunately, that could not help me.
I am using ubuntu 14.04 and previously I used gnuplot ver 4.6.
Hope I could get some help.
Thanks
I installed gnuplot version 4.6.6.
After that the terminals "wxt" and "pngcairo" were no longer available. The time before I have been working a lot with these two terminals with version 4.4 and with very good results.
How can I get these two terminals working with gnuplot version 4.6?
In the following I try to answer a question of Christoph:
I am working with Linux, with an old version of Kubuntu (Ubuntu 11.10 "oneiric").
I downloaded "gnuplot-4.6.6", unpacked it and read the File "INSTALL".
From this long text I read only the following lines:
----------------------------------------------
Unix, configure
---------------
On Unix, use
$ ./configure
$ make
[ Optionally run demos--see "How to test gnuplot" below. ]
$ make install
-----------------------------------------------
and also the following lines:
----------------------------------------------------------
Linux
-----
Ubuntu:
./configure fails to find lua support because Ubuntu packages it as
"lua5.1" rather than "lua". You can fix this by adding a symlink
prior to running ./configure
ln -s /usr/lib/pkgconfig/lua5.1.pc /usr/lib/pkgconfig/lua.pc
-----------------------------------------------------------
So I applied the following statements (as root):
'ln -s /usr/lib/pkgconfig/lua5.1.pc /usr/lib/pkgconfig/lua.pc'
./configure
make
make install
All these statements produced a lot of output, but no problems were indicated.
The executable binary program is located in "/usr/local/bin".
My old gnuplot 4.4 is located in "usr/bin".I installed gnuplot version 4.6.6. After that the terminals "wxt" and "pngcairo" were no longer available. The time before I have been working a lot with these two terminals with version 4.4 and with very good results.
How can I get these two terminals working with gnuplot version 4.6?