How to solve the error “ missing required header GL/gl.h” while installing the Package mvoutlier in R?

后端 未结 8 1129
囚心锁ツ
囚心锁ツ 2021-01-31 01:48

I am trying to install the package mvoutlier but following error occurs during installation:

install.packages(\"mvoutlier\")
configure: error: missi         


        
8条回答
  •  一向
    一向 (楼主)
    2021-01-31 02:34

    I suspect you are running Ubuntu 12.04.I think you're going to find that this works for the GL/gl.h problem:

    install these at the regular old terminal, ie pretend R doesn't exist for now:

    libglu1-mesa-dev freeglut3-dev mesa-common-dev
    

    You might get the following error later (in R) because of a tcl b****/gripe/complaint:

    Error in structure(.External(.C_dotTcl, ...), class = "tclObj") : 
      [tcl] can't find package BWidget.
    

    To fix this problem, if you have it:

    sudo apt-get install bwidget
    

    These are not R problems. They are OS problems!

提交回复
热议问题