LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-23-2010, 06:38 PM   #1
Asths
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Question Problems to add POVRAY and VRML terminal to GNUPLOT 4.0.


Hello guys!!!

Currently, I am using CYGWIN and from there I can run GNUPLOT.
One night I found out from internet a website (content in portugues) how to install POVRAY. According to this website, I followed these steps:

$ wget -c ftp://ftp.dante.de/pub/tex/graphics/...t-4.0.0.tar.gz

$ wget -c http://t-kita.net/gnuplot_povrml/gnu...vrml-0.3.patch

$ tar zxvf gnuplot-4.0.0.tar.gz

$ cp gnuplot_povrml-0.3.patch gnuplot-4.0.0

$ cd gnuplot-4.0.0

$ patch -p1 < gnuplot_povrml-0.3.patch

Due to the CYGWIN has already installed the GNUPLOT 4.2 on the system, I did this:

$ ./configure --prefix=/home/user/selected_folder/

$ make install

After that,

$ cd ~/selected_folder/bin/
$ ./gnuplot

So, I can run GNUPLOT 4.0, but when I want to create this kind of graphs

set terminal povray
set xlabel "x-data"
set ylabel "y-data"
set zlabel "height"
set samples 20
set isosamples 20
set out "povray-demo1.pov"
splot x*y with points, x*10 with points ps 1.5, x-60 with d, -2*x-120 with lines
set out
!povray +FC +A0.5 graficoA.pov


The following message appears:

sh: povray: command not found


What can I do??? What did I do wrong? What did I forget? someone can tell me.

Astha Selene
 
Old 10-24-2010, 01:06 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Probably just add the location of the povray runtime binary to $PATH, or instead of the script using '!povray', use the fully qualified filespec of the povray runtime binary.

--- rod.
 
Old 10-27-2010, 08:48 PM   #3
Asths
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Question Reply

Dear Rod,

Due to I'm a new user of Gnuplot, I cannot understand your first suggestion, please can you write how can I do that?

Thank you in advance

Astha Selene



Quote:
Originally Posted by theNbomr View Post
Probably just add the location of the povray runtime binary to $PATH, or instead of the script using '!povray', use the fully qualified filespec of the povray runtime binary.

--- rod.
 
Old 10-27-2010, 11:48 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
First, figure out where the povray runtime binaries are installed. Note the name of the directory where you find it. For the sake of argument, if it was found in the directory /usr/local/povray, then at the shell prompt where you start gnuplot:
Code:
PATH=$PATH:/usr/local/povray
Then, run gnuplot.
Gnuplot is trying to launch povray, but doesn't know how to find it. Like the shell, it may use $PATH to find programs. Adding a directory to the list in $PATH will tell it to look there, and it will then find it.

--- rod.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
which terminal to use with gnuplot to work with pdf latex sycamorex Linux - General 3 02-15-2011 07:25 AM
gnuplot svg terminal problem sreejithpk Linux - Software 6 03-18-2009 12:24 PM
Problems about gnuplot lawrence_lee_lee Linux - Software 1 06-26-2007 09:23 AM
no x11 terminal in gnuplot 4.0.0 polzbert Linux - Software 1 01-10-2006 05:54 AM
gnuplot cant detect terminal trylinux Linux - Software 3 02-17-2005 05:02 AM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration