Octave-Gnuplot-AquaTerm 오류 : 터미널 아쿠아 확장 제목“그림 1”… 알 수없는 터미널 유형 설정”
Homebrew를 통해 Octave와 gnuplot을 설치하고 AquaTerm.dmg를 다운로드했습니다. 줄거리를 시도하면 다음 메시지가 나타납니다.
octave:4> plot(x,y)
gnuplot> set terminal aqua enhanced title "Figure 1" font "*,6"
^
`line 0: unknown or ambiguous terminal type; type just 'set terminal' for a list`
bash 터미널 set terminal
에서 set Terminal
,, set term
(그리고 "aqua"도 마찬가지) 등은 아무것도 제공하지 않습니다. "AquaTerm"이 이미 열려있는 옥타브에서 다시 플로팅을 시도했지만 아무것도 없습니다. gnuplot에서 직접 플로팅을 시도했지만 같은 문제가 있습니다.이 "터미널 아쿠아 설정"을 어떻게 수행 할 수 있습니까?
Gnuplot 시작 메시지에 "" Terminal type set to 'x11'
라고 표시되지만 변경 방법을 모릅니다. 이전 명령도 작동하지 않았습니다.
AquaTerm이 Homebrew에서 설치되지 않았기 때문에 아마도 옥타브 / gnupot이 그것을 찾을 수 없지만 ... 아무도 모르겠습니다. 어떤 추측? 감사!
영구적으로 작동 setenv("GNUTERM","X11")
하려면 OCTAVE_HOME/share/octave/site/m/startup/octaverc
(OCTAVE_HOME은 일반적으로 / usr / local) 에 추가 해야 했습니다.
솔루션 발견 및 자세한 내용 : http://www.mac-forums.com/forums/os-x-apps-games/242997-plots-octave-dont-work.html
OS X 10.9.1에서 Octave-cli, 버전 3.8.0과 비슷한 문제가 발생했습니다. Octave-gui가 여전히 차트를 그릴 수있는 방법을 관찰하고 octaverc로 답변을 읽는 동안 setenv("GNUTERM","qt")
/usr/local/octave/3.8.0/share/octave/에 줄을 추가하여 Octave-cli에서 작업하도록 플로팅했습니다. site / m / startup / octaverc
gnuplot 또는 기타 종속성을 다시 설치할 필요가 없었습니다.
터미널 유형을 x11로 설정하면 문제가 해결되지만 AquaTerm을 gnuplot과 함께 사용하려면 다음과 같이하십시오.
먼저 기존의 gnuplot 설치를 제거하고 터미널을 열고이 명령을 실행해야합니다.
brew uninstall gnuplot
http://sourceforge.net/projects/aquaterm/ 에서 AquaTerm을 다운로드 하고 OSX 응용 프로그램처럼 설치 하십시오 .
여기서부터 gnuplot을 aquaterm에 만족시키는 두 가지 방법이 있습니다. 방법 1 이 더 쉽지만 AquaTerm 설치가 / usr / local / lib에 올바른 심볼릭 링크를 만들지 않았기 때문에 작동하지 않았습니다. 방법 2 는 나를 위해 일한 것, 나는 그것을 작동시키기 위해 취한 단계를 공유하고 있습니다.
방법 1 : AquaTerm을 설치 한 후 gnuplot을 다시 설치하면 사람들이이 문제를 해결하는 것 같습니다.
brew install gnuplot
확인 단계로 이동하여 모든 것이 작동했는지 확인하고, 그렇지 않은 경우 방법 2를 따르십시오.
방법 2 : 이 방법은 고급이지만 환자가 인 경우 작동 할 수 있습니다.
본질적으로 gnuplot은 AquaTerm 라이브러리 파일을 찾을 수 없으므로 gnuplot을 설치 한 후 아쿠아가 터미널 유형 옵션으로 표시되지 않습니다. gnuplot의 홈 브루 크 레시피를 수정하여 아쿠아 터미널 지원을 활성화하고 다음을 입력하여 gnuplot의 브류 레시피를 엽니 다.
brew edit gnuplot
이 github commit 메시지에 표시된 것처럼이 줄을 추가하면 gnuplot의 brew 옵션에 aquaterm https://github.com/mxcl/homebrew/issues/14647#issuecomment-21132477 이 포함됩니다.
다음 점검을 수행하여 적절한 AquaTerm 라이브러리 심볼릭 링크가 있는지 확인하십시오.
ls /usr/local/lib/libaquaterm*
ls /usr/local/include/aquaterm/*
위의 첫 번째 줄은 일부 * .dylib 파일을 반환하고 위의 두 번째 줄은 일부 * .h 파일을 반환해야합니다. 존재하지 않는 경우 터미널에서 다음 명령을 실행하십시오.
sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm /usr/local/lib/libaquaterm.dylib
sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/AquaTerm /usr/local/lib/libaquaterm.1.0.0.dylib
sudo ln -s /Library/Frameworks/AquaTerm.framework/Versions/A/Headers/* /usr/local/include/aquaterm/.
AquaTerm 설치 프로그램이 권한 문제로 인해 올바른 위치에 심볼릭 링크를 만들 수 없으므로 때때로 필요합니다. / usr / local / 심볼릭 링크가 생성되면 다음과 같이 gnuplot을 다시 설치하십시오.
brew install gnuplot --with-aquaterm # (formerly --aquaterm in old versions)
gnuplot이 아래 단계와 행복한 음모를 사용하여 아쿠아 터미를 볼 수 있는지 확인하십시오!
확인 : 터미널에서 gnuplot을 시작하여 gnuplot이 AquaTerm으로 올바르게 구성 되었는지 확인하십시오.
gnuplot
gnuplot 터미널에 이것을 입력하십시오
gnuplot> set term
줄을 찾으십시오
Available terminal types:
aqua Interface to graphics terminal server for Mac OS X
...
위의 해당 줄을 보면 gnuplot이 올바르게 구성되어 모든 사람이 행복하다는 것입니다.
I found a way to generate the plots with octave, although is not using AquaTerm but x11. The problem was that Octave was "forcing" gnuplot to use aquaterm to plot. Instead of installing and integrating aquaterm into gnuplot, in octave typed: setenv GNUTERM x11
. With this, plots are generated with x11 which is already in the terminal list of gnuplot (set terminal
). I know it's a patch, but finally I don't mind aquaterm or x11, I just want plots to be generated
set terminal
or set term
is gnuplot command.
You just need to run gnuplot
from command line to get access to the gnuplot shell.
However, this didn't work for me, neither did the setenv("GNUTERM","x11")
in /usr/local/share/octave/site/m/startup/octaverc
or ~/.octaverc
(both do the same thing).
So I ran set term
in gnuplot shell as saw no x11
in the list. I used homebrew to install gnuplot, so I first uninstalled it brew uninstall gnuplot
, then installed with x11
using --with-x
flag for that:
brew install gnuplot --with-x
This solved the issue for me. Use brew info gnuplot
to see the list of flags for gnuplot installation.
P.S. And yes, I did download an X11 dmg and installed it using package installer, still gnuplot had no x11 in the list of supported terminals.
You can try this:
>> brew reinstall gnuplot --with-aquaterm
or
>> brew uninstall gnuplot
>> brew install gnuplot --with-aquaterm
Create a file .octaverc
in your home directory and set GNUTERM to X11
echo "setenv('GNUTERM','X11')" > ~/.octaverc
Open octave terminal and type sombrero
to check whether plotting works
octave:1> sombrero
This worked for me:
Unistall gnuplot
brew uninstall gnuplot
Install AquaTerm. You can download it from here: http://sourceforge.net/projects/aquaterm/
Reinstall gnuplot
brew install gnuplot
Anton is correct. You can now just reinstall gnuplot with the --with-aquaterm option. I'd upvote his answer if I had enough reputation points to do it.
$ brew uninstall gnuplot
$ brew install gnuplot --with-aquaterm
Mackuntu mentioned above that this issue has been discussed on github.
https://github.com/mxcl/homebrew/issues/14647#issuecomment-21132477
But he advised using the option --aquaterm. If you take a close look at the github link you'll see that the option is --with-aquaterm. Reinstalling gnuplot with this option today allowed me to run some old octave code that uses gnuplot for plotting graphs on OS X.
I have an answer that should resolve the issue you're encountering. Essentially, for me the problem was that the gnuplot build did not locate the proper AquaTerm libraries. Check out the post I made:
http://deveneezer.blogspot.com/2013/06/octave-gnuplot-and-aquaterm.html
In my case, on Mas OS Mojave, the solution that worked for my was slightly different (it could be a matter of syntax only). Following the discussion on this thread I came with the solution that worked for me - it might be important to note that it was possible for me to plot from the Octave-cli but not from Octave command line directly in terminal.
So I created a ˜/.octaverc
file and added the following command to it:
setenv GNUTERM qt
Just quit the command line from octave and entered again and was able to plot.
What has worked for me is installing gnuplot-nox. Also see https://bugs.mageia.org/show_bug.cgi?id=4866
Seems like the best way to install gnuplot-nox is to install fink. http://sourceforge.net/projects/fink/?source=dlp
fink install gnuplot-nox
seems to do a good job. However the installation was failing at one point. So I installed gnuplot-minimal then ran gnuplot-nox install again and everything worked just fine.
fink install gnuplot-minimal
fink install gnuplot-nox
gnuplot-nox install seemed to have set aqua as the default terminal for gnuplot. Verify that by going to gnuplot shell. To verify if plotting works, type plot(1) in the shell. It should show the plot in a window.
Hope that works for you.
Like suggested in other posts, setting GNUTERM to X11 didn't solve this issue for me. Also straight installing AquaTerm for Mac OSX didn't solve this issue.
The answer is already contained in the above, but this is simpler I think:
nano ~/.octaverc
add this:
setenv("GNUTERM", "X11")
Thats it restart octave you're done.
Following thing worked for me:
setenv("GNUTERM","qt")
You can either run it on the octave cli, for local run or can set in the octave startup file for permanent.
/usr/local/octave/3.8.0/share/octave/site/m/startup/octaverc
Just remember in case you change octaverc file you have to have write permissions on it.
Here is the solution that worked for me (based on different parts of the mackuntu comment)
Gnuplot is probably already installed for you by the brew install octave command, so we need to remove it first
brew uninstall gnuplot
Then aquaterm has to be installed (http://sourceforge.net/projects/aquaterm/)
After install is complete you need to install gnuplot again. This is because brew detects the presence of aquaterm during install and will not do any checks for it after.
brew install gnuplot --with-aquaterm
If you launch gnuplot after install it should show that aquaterm is supported. And all graphics in octave will work.
'Programing' 카테고리의 다른 글
컨텐츠를 추가하기 전에 requestFeature ()를 호출해야합니다. (0) | 2020.06.27 |
---|---|
ImportError : 이름이 apiclient.discovery 인 모듈이 없습니다. (0) | 2020.06.27 |
Swift에서 빈 배열을 만드는 방법은 무엇입니까? (0) | 2020.06.27 |
void async 메소드 대기 (0) | 2020.06.26 |
배치 파일에서 앰퍼샌드를 이스케이프 처리하려면 어떻게해야합니까? (0) | 2020.06.26 |