<div dir="ltr">Thanks Boris, <div><br></div><div>When I install libwxbase3.0-dev, libwxgtk3.0-dev and libglu1-mesa-dev instead of <span style="font-size:12.8px"> </span><span style="font-size:12.8px">freeglut3-dev wx2.8-headers wx-common libwxbase2.8 libwxgtk2.8-dev libqt4-opengl-dev libgtk2.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng3</span></div><div><span style="font-size:12.8px">I get the same error on </span><span style="font-size:12.8px"> wx:demo().</span></div><div><span style="font-size:12.8px">which wx-config && wx-config --version-full gives</span></div><div><span style="font-size:12.8px">/usr/bin/wx-config</span></div><div><span style="font-size:12.8px">3.0.0.0</span></div><div><span style="font-size:12.8px"> Maybe I have to configure some files from within my script? </span></div><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 11, 2016 at 10:00 AM, Boris Mühmer <span dir="ltr"><<a href="mailto:boris.muehmer@gmail.com" target="_blank">boris.muehmer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello Stefan,</div><div><br></div>You need to install <b>libwxbase3.0-dev</b> and <b>libwxgtk3.0-dev</b>.<div><br></div><div>I also believe You should install <b>libglu1-mesa-dev</b>. I have it in my erlang setup dependency list, but I can not remember why this was needed. It is possible that the gl demo did not work without it.</div><div><br></div><div>But "my dependency list" started with 12.04, and some things were manuall changed/configured with 14.04. Maybe some things are automatically resolved now (like libwxgtk3.0-dev automatically includes libwxbase3.0-dev and libglu1-mesa-dev).</div><div><br></div><div><br></div><div>Regards,</div><div>Boris</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2016-04-11 9:22 GMT+02:00 Stefan Houtzager <span dir="ltr"><<a href="mailto:stefan.houtzager@gmail.com" target="_blank">stefan.houtzager@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I would appreciate an installscript for a recent erlang version on Ubuntu 14.04.4 LTS with wxerlang working. <br></div><div> I am a starting elixir developer (and for that need erlang). I would like to get wxerlang working and created a dockerimage to make my installation easy portable. I use otp_src_18.3.tar.gz and install several wx packages and others, I'm not sure if I miss some or install some that are not needed. Anyway, after the install the output of <span style="font-size:12.8px">which wx-config && wx-config --version-full is</span></div><div><span style="font-size:12.8px"><br></span></div><div><div style="font-size:12.8px">/usr/bin/wx-config</div><div style="font-size:12.8px">2.8.12.1</div></div><div><br></div><div>But wx:demo(). results in an error:</div><div><br></div><div><div>Eshell V7.3 (abort with ^G)</div><div>1> wx:demo().</div><div>Error: Unable to initialize gtk, is DISPLAY set properly?</div><div>ok</div><div>2> </div></div><div><br></div><div>The most important installs in the dockerfile (just linux commands after the RUN statements, phusion/baseimage:0.9.18 is Ubuntu 14.04.4 LTS reworked for docker) I copied below, the full dockerfile and the logging of the output I arttached.</div><div><br></div><div></div><div><br></div><div><div>FROM phusion/baseimage:0.9.18</div><div>MAINTAINER Stefan Houtzager <<a href="mailto:stefan.houtzager@gmail.com" target="_blank">stefan.houtzager@gmail.com</a>></div><div><br></div><div># Important! Update this no-op ENV variable when this Dockerfile</div><div># is updated with the current date. It will force refresh of all</div><div># of the base images and things like `apt-get update` won't be using</div><div># old cached versions when the Dockerfile is built.</div><div>ENV REFRESHED_AT 05-04-2016</div><div><br></div><div># Set correct environment variables.</div><div><br></div><div># Setting ENV HOME does not seem to work currently. HOME is unset in Docker container.</div><div># See bug : <a href="https://github.com/phusion/baseimage-docker/issues/119" target="_blank">https://github.com/phusion/baseimage-docker/issues/119</a></div><div>#ENV HOME /root</div><div># Workaround:</div><div>RUN echo /root > /etc/container_environment/HOME</div><div><br></div><div># Regenerate SSH host keys. baseimage-docker does not contain any, so you</div><div># have to do that yourself. You may also comment out this instruction; the</div><div># init system will auto-generate one during boot.</div><div>RUN /etc/my_init.d/00_regen_ssh_host_keys.sh</div><div><br></div><div># Use baseimage-docker's init system.</div><div>CMD ["/sbin/my_init"]</div><div><br></div><div># ...put your own build instructions here...</div><div><br></div><div># Set the locale</div><div>RUN locale-gen en_US.UTF-8</div><div>ENV LANG en_US.UTF-8</div><div>ENV LANGUAGE en_US:en</div><div>ENV LC_ALL en_US.UTF-8</div><div><br></div><div>WORKDIR /tmp</div><div><br></div><div># See : <a href="https://github.com/phusion/baseimage-docker/issues/58" target="_blank">https://github.com/phusion/baseimage-docker/issues/58</a></div><div>RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections</div><div><br></div><div># update and install some software requirements</div><div>RUN apt-get update && apt-get upgrade -y && apt-get install -y curl wget git unzip autoconf make g++ gcc fop libxml2-utils xsltproc</div><div><br></div><div>WORKDIR /</div><div><br></div><div>RUN add-apt-repository ppa:openjdk-r/ppa</div><div>RUN apt-get update && apt-get install openjdk-8-jdk -y</div><div><br></div><div>WORKDIR /</div><div><br></div><div># install nano (and pico)</div><div>RUN apt-get update && apt-get install nano -y</div><div><br></div><div># Needed for terminal handling (libc-dev libncurses5 libtinfo-dev libtinfo5 ncurses-bin)</div><div>RUN apt-get -y install libncurses5-dev openssl libssl-dev m4 libncurses-dev libgmp3-dev libglu-dev</div><div><br></div><div># For building with wxWidgets</div><div>RUN apt-get -y install freeglut3-dev wx2.8-headers wx-common libwxbase2.8 libwxgtk2.8-dev libqt4-opengl-dev libgtk2.0-dev libgl1-mesa-dev libglu1-mesa-dev libpng3</div><div><br></div><div># For building ssl (libssh-4 libssl-dev zlib1g-dev)</div><div>RUN apt-get -y install libssh-dev</div><div><br></div><div># ODBC support (libltdl3-dev odbcinst1debian2 unixodbc)</div><div>RUN apt-get -y install unixodbc-dev</div><div>RUN apt-get -y install ncurses-dev</div><div>RUN wget <a href="http://www.erlang.org/download/otp_src_18.3.tar.gz" target="_blank">http://www.erlang.org/download/otp_src_18.3.tar.gz</a></div><div>RUN tar -xvzf otp_src_18.3.tar.gz</div><div>RUN chmod -R 777 otp_src_18.3</div><div>WORKDIR otp_src_18.3</div><div>RUN ./configure</div><div>RUN make</div><div>RUN make install</div><div>RUN cd .. && rm -R otp_src_18.3/</div><div><br></div><div>RUN echo "ERLANG_HOME=/usr/local/lib/erlang" >> ~/.bashrc</div><div>RUN echo "export PATH=$PATH:$ERLANG_HOME/bin" >> ~/.bashrc</div><div>RUN echo "export DISPLAY=:100.0" >> ~/.bashrc</div><div><br></div><div>RUN apt-get purge --auto-remove openjdk-8-jdk -y </div><div>RUN rm -R /usr/lib/jvm</div></div><span><font color="#888888"><div><br clear="all"><div><br></div>-- <br><div>Kind regards,<br><br>Stefan Houtzager<br><br>Houtzager ICT consultancy & development<br><br><a href="http://www.linkedin.com/in/stefanhoutzager" target="_blank">www.linkedin.com/in/stefanhoutzager</a> </div>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Kind regards,<br><br>Stefan Houtzager<br><br>Houtzager ICT consultancy & development<br><br><a href="http://www.linkedin.com/in/stefanhoutzager" target="_blank">www.linkedin.com/in/stefanhoutzager</a> </div>
</div>