Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Terminal set to "unknown" in gnuplot 5.2.6

780 views
Skip to first unread message

jaga.ph...@gmail.com

unread,
Feb 20, 2019, 8:30:47 AM2/20/19
to
Hi,
I have installed gnuplot 5.2.6 package from 'http://gnuplot.sourceforge.net/' and installed in my ubuntu 18.04. After opening it in my terminal, I found terminal is set to unknown.

I tried to remove the gnuplot by using the commang 'sudo apt remove gnuplot' and 'sudo apt-get purge --auto-remove gnuplot' and then tried to install gnuplot using the command 'sudo apt-get install gnuplot-qt', but event after all these my gnuplot is still showing terminal set to unknown.

kindly help me to fix this. Thank you.

Jörg Buchholz

unread,
Feb 21, 2019, 1:22:43 AM2/21/19
to
With "set term" you can show which terminals your gnuplot supports.

"terminal is set to unknown" means that the terminal is set to a
terminal that your gnuplot does not support.

What is in your gnuplotrc or .gnuplot file? See man gnuplot.

Jörg

jaga.ph...@gmail.com

unread,
Feb 21, 2019, 4:02:26 AM2/21/19
to
Before this gnuplot version, there was gnuplot-5.2.2 in my PC and 'qt' is the default version of terminal. But in this version, 'set terminal' option is nt showing terminal 'qt'.

Can you please suggest me some terminal type using which I can do ploting.

Jörg Buchholz

unread,
Feb 21, 2019, 5:36:52 AM2/21/19
to
On 21.02.2019 10:02, jaga.ph...@gmail.com wrote:
> On Thursday, February 21, 2019 at 11:52:43 AM UTC+5:30, Jörg Buchholz
> wrote:
>> On 20.02.2019 14:30, jaga.ph...@gmail.com wrote:
>>> Hi, I have installed gnuplot 5.2.6 package from
>>> 'http://gnuplot.sourceforge.net/' and installed in my ubuntu
>>> 18.04. After opening it in my terminal, I found terminal is set
>>> to unknown.

You have compiled the source and than installed it? There are no binary
for linux or .deb packages at 'http://gnuplot.sourceforge.net/'

>>> I tried to remove the gnuplot by using the commang 'sudo apt
>>> remove gnuplot' and 'sudo apt-get purge --auto-remove gnuplot'
>>> and then tried to install gnuplot using the command 'sudo apt-get
>>> install gnuplot-qt', but event after all these my gnuplot is
>>> still showing terminal set to unknown.

Have you tried it or have you done it? Here, after a 'sudo apt-get
install gnuplot-qt' on a Ubuntu 18.x LTS everything works fine.

>> What is in your gnuplotrc or .gnuplot file? See man gnuplot.
>
> Before this gnuplot version, there was gnuplot-5.2.2 in my PC and
> 'qt' is the default version of terminal. But in this version, 'set
> terminal' option is nt showing terminal 'qt'.
>
> Can you please suggest me some terminal type using which I can do
> ploting.

Type 'set terminal' in your gnuplot and you get a list of available
terminals.

Which gnuplot do you have at the moment and from where? On Ubuntu 18.X
gnuplot 5.2.2 is up to date.

Jörg

jaga.ph...@gmail.com

unread,
Feb 21, 2019, 5:50:59 AM2/21/19
to
On Thursday, February 21, 2019 at 4:06:52 PM UTC+5:30, Jörg Buchholz wrote:
> On 21.02.2019 10:02, jaga.ph...@gmail.com wrote:
> > On Thursday, February 21, 2019 at 11:52:43 AM UTC+5:30, Jörg Buchholz
> > wrote:
> >> On 20.02.2019 14:30, jaga.ph...@gmail.com wrote:
> >>> Hi, I have installed gnuplot 5.2.6 package from
> >>> 'http://gnuplot.sourceforge.net/' and installed in my ubuntu
> >>> 18.04. After opening it in my terminal, I found terminal is set
> >>> to unknown.
>
> You have compiled the source and than installed it? There are no binary
> for linux or .deb packages at 'http://gnuplot.sourceforge.net/'
>
I have downloaded the '.tar.gz' from 'https://sourceforge.net/projects/gnuplot/files/gnuplot/5.2.6/' and then untar it using 'tar -xvf' command in termial and then './configure && make && make install'. After this restart my PC and since then this problem is comming.

> >>> I tried to remove the gnuplot by using the commang 'sudo apt
> >>> remove gnuplot' and 'sudo apt-get purge --auto-remove gnuplot'
> >>> and then tried to install gnuplot using the command 'sudo apt-get
> >>> install gnuplot-qt', but event after all these my gnuplot is
> >>> still showing terminal set to unknown.
>
> Have you tried it or have you done it? Here, after a 'sudo apt-get
> install gnuplot-qt' on a Ubuntu 18.x LTS everything works fine.
> I have done it and then again entered the command 'sudo apt-get
> install gnuplot-qt'. Still my terminal type is showing 'unknown'

Jörg Buchholz

unread,
Feb 21, 2019, 8:16:32 AM2/21/19
to
On 21.02.2019 11:50, jaga.ph...@gmail.com wrote:
> On Thursday, February 21, 2019 at 4:06:52 PM UTC+5:30, Jörg Buchholz
> wrote:
>> On 21.02.2019 10:02, jaga.ph...@gmail.com wrote:
>>> On Thursday, February 21, 2019 at 11:52:43 AM UTC+5:30, Jörg
>>> Buchholz wrote:
>>>> On 20.02.2019 14:30, jaga.ph...@gmail.com wrote:
>>>>> Hi, I have installed gnuplot 5.2.6 package from
>>>>> 'http://gnuplot.sourceforge.net/' and installed in my ubuntu
>>>>> 18.04. After opening it in my terminal, I found terminal is
>>>>> set to unknown.
>>
>> You have compiled the source and than installed it? There are no
>> binary for linux or .deb packages at
>> 'http://gnuplot.sourceforge.net/'
>>
> I have downloaded the '.tar.gz' from
> 'https://sourceforge.net/projects/gnuplot/files/gnuplot/5.2.6/' and
> then untar it using 'tar -xvf' command in termial and then
> './configure && make && make install'. After this restart my PC and
> since then this problem is comming.
>
>>>>> I tried to remove the gnuplot by using the commang 'sudo apt
>>>>> remove gnuplot' and 'sudo apt-get purge --auto-remove
>>>>> gnuplot' and then tried to install gnuplot using the command
>>>>> 'sudo apt-get install gnuplot-qt', but event after all these
>>>>> my gnuplot is still showing terminal set to unknown.

With these commands you only remove your gnuplot that comes over your
package management, it don't remove your own compiled gnuplot.

apt-get is your package management.

>> Have you tried it or have you done it? Here, after a 'sudo apt-get
>> install gnuplot-qt' on a Ubuntu 18.x LTS everything works fine. I
>> have done it and then again entered the command 'sudo apt-get
>> install gnuplot-qt'. Still my terminal type is showing 'unknown'
>>>> What is in your gnuplotrc or .gnuplot file? See man gnuplot.
>>>
>>> Before this gnuplot version, there was gnuplot-5.2.2 in my PC
>>> and 'qt' is the default version of terminal. But in this version,
>>> 'set terminal' option is nt showing terminal 'qt'.
>>>
>>> Can you please suggest me some terminal type using which I can
>>> do ploting.
>>
>> Type 'set terminal' in your gnuplot and you get a list of
>> available terminals.
>>
>> Which gnuplot do you have at the moment and from where?

Please give some answers to the two questions above, otherwise nobody
can help you. Nobody can see which version you starts, or what terminals
are included.

It can be that the command 'gnuplot' is linked to your own compiled
'gnuplot 5.2.6'.

Can you start gnuplot with 'gnuplot-qt'?

Jörg

Karl Ratzsch

unread,
Feb 21, 2019, 1:24:51 PM2/21/19
to
Am 20.02.2019 um 14:30 schrieb jaga.ph...@gmail.com:
> Hi,
> I have installed gnuplot 5.2.6 package from 'http://gnuplot.sourceforge.net/' and installed in my ubuntu 18.04. After opening it in my terminal, I found terminal is set to unknown.

That result is tbe., because you very likely don't have installed
the numerous -dev packages of ubuntu that gnuplot needs to build all
the fancy interactive terminals. See e.g. here
https://stackoverflow.com/questions/29526044/installing-gnuplot-5-0-on-ubuntu/31819448#31819448

> I tried to remove the gnuplot by using the commang 'sudo apt remove gnuplot' and 'sudo apt-get purge --auto-remove gnuplot' and then tried to install gnuplot using the command 'sudo apt-get install gnuplot-qt', but event after all these my gnuplot is still showing terminal set to unknown.

These commands, as already mentioned in another post, did _not_
un/install the gnuplot you compiled by yourself, but a previous,
precompiled version that you had installed via ubuntu's package
manager (the executable should be in /usr/bin, you can run it from
there).

When looking for an executable, your shell inevitably first finds
the one you compiled yourself (it's located in /usr/local/bin or
such place), and doesn't look any further. I believe if you go back
into the source folder, and type "make uninstall", it gets removed.
Or you can delete it by hand.

So there are two possibilities: You either go back to ubuntu's stock
gnuplot package, or you re-compile from the sources as explained in
the link above.

Good luck!
Karl


0 new messages