Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiMC: error while loading shared libraries: libMultiMC_logic.so: cannot open shared object file: No such file or directory #1539

Closed
happysmash27 opened this issue Mar 30, 2016 · 5 comments
Labels

Comments

@happysmash27
Copy link

System Information

MultiMC version:

Latest Github version (self-compiled)

Operating System:

Linux 4.1.15-gentoo-r1 (64-bit Intel)

Summary of the issue or suggestion:

Despite the libraries being in /usr/local/bin (where they really shouldn't be anyway, but were installed by default), /usr/local/lib64, /usr/local/lib, and /usr/local/bin/lib64 (where it also wouldn't make sense to put them, but I did anyway), running MultiMC from the command line still outputs MultiMC: error while loading shared libraries: libMultiMC_logic.so: cannot open shared object file: No such file or directory. These libraries include libMultiMC_logic.so.

What should happen:

MultiMC should start

Steps to reproduce the issue (Add more if needed):

  1. git clone https://github.com/MultiMC/MultiMC5
  2. git submodule init
  3. git submodule update
  4. mkdir build
  5. cd build
  6. cmake ..
  7. make
  8. make install (or sudo make install if your user is not root)

(QT Creator didn't have a cmake button, so I just based the necessary steps to compile and install it off the Mac OSX/Darwin instructions)

Suspected cause:

Either problems finding libraries, or the interface between the chair and the keyboard (myself)

Logs/Screenshots:

happysmash27@Ascended Gentoo-Pig ~ $ MultiMC 
MultiMC: error while loading shared libraries: libMultiMC_logic.so: cannot open shared object file: No such file or directory
happysmash27@Ascended Gentoo-Pig ~ $ 

Additional Info:

Why do I have to open the executable manually anyway? Shouldn't there just be a .desktop file so you are able to launch it in the standard menu of most modern desktop environments?

Also, pardon me for my incompetence. I'm sure there is a simple reason the library is not found, probably related to a bad path.

@peterix
Copy link
Member

peterix commented Mar 30, 2016

You should use the launch script, not the executable. The libraries do not belong into any sort of standard hierarchy and never did. The application is a portable application. It is meant to run from your own folders, not a system folder (so, set the install prefix to something like ~/MultiMC). You can put this on a thumb drive and carry it around. Add binary files required for different OS and you have something that runs on both linux and windows. Etc.

You should never use sudo make install with this.

If you want to add a .desktop file, you can. That's how the ubuntu package is done. It has an icon file, a .desktop file and a script that grabs the real application. I see it as strictly inferior to what it is now. A limited, dumbed down version. Sadly, most desktop environments have regressed over time and are unable to handle a real application without a pile of metadata registered in the system.

You can look at what goes into the ubuntu package here:
https://github.com/MultiMC/MultiMC5/tree/develop/application/package/ubuntu

It might run counter to everything that exists on the linux desktop right now, but I wouldn't want this thing to be packaged by people - not yet. The issue is that I have to be able to push an update to everyone without going through lagging distro packagers. Maybe once it doesn't depend on external resources in custom undocumented and periodically changing formats, it will be possible to allow that. But right now, I wouldn't want stale packages sitting in repositories for 6 months. I sometimes have to push updates in days to keep stuff working.

I'm working on fixing that issue. It needs setting up more infrastructure. So, maybe sometime this year.

@peterix
Copy link
Member

peterix commented Mar 30, 2016

Same applies to system installed version on Windows, and OSX. Or having an installer at all.

You can use this without admin rights of any kind.

@happysmash27
Copy link
Author

Where do I find the launch script? I don't believe I saw any in the source. Also, thanks (:

@peterix
Copy link
Member

peterix commented Mar 30, 2016

image

Install prefix root.

@peterix
Copy link
Member

peterix commented Feb 14, 2018

Closing for lack of activity.

@peterix peterix closed this as completed Feb 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants