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

lepton-schematic ubuntu impish fails to run #873

Closed
DavidAustin opened this issue Feb 24, 2022 · 7 comments
Closed

lepton-schematic ubuntu impish fails to run #873

DavidAustin opened this issue Feb 24, 2022 · 7 comments

Comments

@DavidAustin
Copy link

Trying to run lepton-schematic from the ubuntu impish package gives:

$ lepton-schematic 
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /usr/bin/lepton-schematic
;;; WARNING: compilation of /usr/bin/lepton-schematic failed:
;;; In procedure dynamic-link: file: "libglib-2.0", message: "file not found"
Backtrace:
           3 (primitive-load "/usr/bin/lepton-schematic")
In ice-9/eval.scm:
   187:27  2 (_ _)
   223:20  1 (proc #<directory (guile-user) 7f975fb8cc80>)
In unknown file:
           0 (%resolve-variable (7 . liblepton_init) #<directory (gu…>)

ERROR: In procedure %resolve-variable:
Unbound variable: liblepton_init

I have libglib2.0-0:amd64 installed which provides /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.6800.4

@graahnul-grom
Copy link
Member

IIUC, it's Lepton EDA 1.9.16 installed from the official
Ubuntu ("Impish Indri", 21.10) repository, right?

Try to delete Guile cache directory: ~/.cache/guile/

@DavidAustin
Copy link
Author

Thanks for that suggestion. Unfortunately, it didn't help I get a bit more compiling but same file error.

@vzh
Copy link
Member

vzh commented Feb 25, 2022

This message:

;;; In procedure dynamic-link: file: "libglib-2.0", message: "file not found"

suggests that the canonical library for libglib has not been found. It's a known issue for 1.9.16 on Debian (#999699) and its derivatives. The workaround for this version is to install corresponding *-dev packages for missing libs. In this case those are libglib2.0-dev and libgtk2.0-dev (libgtk-3-dev for GTK3 version, though it should not be the case on Ubuntu).
Another workaround is to download and install a newer lepton-eda package directly from the Debian repository. The issue should be fixed there in 1.9.16-2 or 1.9.16-3.

@DavidAustin
Copy link
Author

Thanks - that did the trick.

@graahnul-grom
Copy link
Member

@DavidAustin Great!
@vzh I think we should add this info to our Ubuntu wiki page.

@vzh
Copy link
Member

vzh commented Mar 2, 2022

Done, thanks.

@vzh vzh closed this as completed Mar 2, 2022
@graahnul-grom
Copy link
Member

@vzh Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants