Mac OS X YES에 Octave 설치

4079 단어 Octave

개시하다


Qiita의 첫 기고입니다.최근에는 복습웹 페이지 정보 기회가 있어 일주일 전에 산 맥북 프로에 옥타브를 넣었다.(Mac 초보자)

Mac 환경

  • MacOS X 10.10 Yosemite
  • 홈brew, Xcode, Xcode Command Line Tools, Java 8은 진입했지만 기본적으로 새로운 상태
  • 차리다


    기본적으로 사이트 축소판 그림의 절차에 따라 필요한 포장을 넣는다.

    Octave 설치


    방금 사이트의 "After dependencies"프로젝트의 마지막 부분에서octave를 설치할 때 다음과 같은 오류가 발생합니다.
    
    $ brew install octave
    Error: No available formula for octave 
    Searching formulae...
    Searching taps...
    homebrew/science/octave     Caskroom/cask/octave    Caskroom/cask/octave
    
    
    이 경우 다음을 tap하십시오.
    
    $ brew tap homebrew/science
    ==> Tapping Homebrew/science
    Cloning into '/usr/local/Library/Taps/homebrew/homebrew-science'...
    remote: Counting objects: 10385, done.
    remote: Compressing objects: 100% (10/10), done.
    remote: Total 10385 (delta 4), reused 0 (delta 0), pack-reused 10375
    Receiving objects: 100% (10385/10385), 2.78 MiB | 1.29 MiB/s, done.
    Resolving deltas: 100% (5798/5798), done.
    Checking connectivity... done.
    Tapped 488 formulae (514 files, 5.3M)
    
    
    이렇게 되면 홈bre/science가 설치되고 다시 octave를 설치합니다.설치하는 데 시간이 좀 걸립니다.
    
    $ brew install octave
    
    
    마지막으로 octave를 시작합니다.
    
    $ octave
    No Java runtime present, requesting install.
    
    
    자바가 없네.나는 설치했다는 욕을 먹었다.Java8이 있는 경우에도 Java6를 설치해야 합니다.
    여기.에서 다운로드하여 설치한 후 Octave를 다시 시작하면
    $ octave
    GNU Octave, version 3.8.2
    Copyright (C) 2014 John W. Eaton and others.
    This is free software; see the source code for copying conditions.
    There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.
    
    Octave was configured for "x86_64-apple-darwin14.1.0".
    
    Additional information about Octave is available at http://www.octave.org.
    
    Please contribute if you find this software useful.
    For more information, visit http://www.octave.org/get-involved.html
    
    Read http://www.octave.org/bugs.html to learn how to submit bug reports.
    For information about changes from previous versions, type 'news'.
    
    octave:1>
    
    
    별다른 경고 없이 잘 작동했어요!
    일단 동작부터 확인해.
    octave:1> w = 10 + sqrt(10)*(randn(1,10000));
    octave:2> hist(w)
    

    좋은 웹페이지 즐겨찾기