GithubHelp home page GithubHelp logo

Comments (12)

scottstanfield avatar scottstanfield commented on May 18, 2024 3

Same here. Upgraded from 16.04 to 17.04 (server version)
Removed MRAN 3.3 per instructions
Installed MRAN 3.4
R fails to launch (coredump) due to missing libpng12.so.0

Workaround:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libpng16.so.16 /usr/lib/x86_64-linux-gnu/libpng12.so.0

What a headache. I can't believe this fixed it.

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024 1

This is the 3rd time I've had this issue, forgot I found the solution here, then wrote a note to my future self, only to find this issue again.

We need a decent SEO name for this concept. Since it's a bug that seems cyclical, I'll call it a cicada, the small, jumping bug whose larvae lay dormant underground, only to emerge when you're trying to get stuff done. Like install R on an Ubuntu 17 LTS instance on AWS.

The esteemed Sir Richard Attenborough narrates a nightmarish BBC segment following the emergence of this fascinating dormant symbolic link.

Here's how you too can pin a cicada bug to an issue. Just file an issue, stick the word cicada in it. Then in the future, just google your name + cicada and boom. It's a high entropy word, so even if your name is common, you'll likely find the issue again.

image

from microsoft-r-open.

mushthofa avatar mushthofa commented on May 18, 2024 1

@scottstanfield : I wonder if at this point you should just bookmark this page 😁

from microsoft-r-open.

mushthofa avatar mushthofa commented on May 18, 2024

If I uninstall MKL, and only install MRO and foreachiterators, R runs, but of course without performance enhancement. As soon as I install MKL, I get the problem again.
BTW, without MKL, I also receive a warning:

In doTryCatch(return(expr), name, parentenv, handler) :
  unable to load shared object '/usr/lib64/microsoft-r/3.4/lib64/R/modules//R_X11.so':
  libpng12.so.0: cannot open shared object file: No such file or directory

but otherwise, R is working.

from microsoft-r-open.

 avatar commented on May 18, 2024

I have the exact same issue, running under Ubuntu 17.04

from microsoft-r-open.

 avatar commented on May 18, 2024

Correction--I /had/ this issue but solved it via

sudo ln -s libudev.so /lib/x86_64-linux-gnu/libudev.so.0
sudo ln -s libpng16.so /usr/lib/x86_64-linux-gnu/libpng12.so.0

as per https://askubuntu.com/questions/838965/where-can-i-find-package-libpng12-so-0

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024

Your future self will thank you

I just ran in to this same problem...Googled it, hit the page, read the last comment...then realized I wrote it just 3 months ago. It still works. So, thank you, past-self.

Also, you can see what, if any, libpng packages you have with ldconfig -p | grep libpng.

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024

I thought of that: I could star or follow this page. But I think if I spent a lot of time researching cicadas, I would mentally wire this crazy R core dump to the this horrible but cute little creature...then I'd remember to search for "Stanfield Cicada".

Ironically, this has triggered another thing I can't seem to remember: the ordering of ln parameters. It seems I get dyslexic with the ordering.

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024

Ran into this again. It's August 28, 2018. I remembered the Google search term stanfield cicada which brought me right back here.

Steps to repro on Ubuntu 18.04

wget https://mran.blob.core.windows.net/install/mro/3.5.1/microsoft-r-open-3.5.1.tar.gz
tar xvf $_
cd microsoft-r-open
sudo ./install.sh --accept-mkl-eula --unattended
R
[core ignominiously dumped]

And since the last post, I actually work for Microsoft now, so maybe I can get this fixed. It'll be the hill I die on.

from microsoft-r-open.

jeroenterheerdt avatar jeroenterheerdt commented on May 18, 2024

For what is worth, there is a note on the (MRO installation page)[https://mran.microsoft.com/documents/rro/installation] about it:

On Ubuntu 18.04, you must also install libpng12 from the Linux Kernel archives, as it is no longer part of the Ubuntu distribution, as follows:

wget https://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
dpkg -i libpng12-01_1.2.54-1ubuntu1_amd64.deb

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024

Under clean install of server-based Ubuntu 19.04 (kernel 5.0) with MRAN 3.5.3 "Great Truth" install successful but R fails to run due to a similar missing library.

% R
/opt/microsoft/ropen/3.5.3/lib64/R/bin/exec/R: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

Workaround:

cd /usr/lib/x86_64-linux-gnu
sudo ln -s libtinfo.so.6 libtinfo.so.5

Curious as to where the reference to libtinfo is coming from (it's a low-level terminal library for ncurses):

moana lib64/R/lib » pwd
/opt/microsoft/ropen/3.5.3/lib64/R/lib
moana lib64/R/lib » ldd libR.so
        [snip]
        libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fb235876000)
moana lib64/R/lib »

from microsoft-r-open.

scottstanfield avatar scottstanfield commented on May 18, 2024

Opened a new issue #102 since this is related to libtinfo.so.5 instead of the libpng

from microsoft-r-open.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.