Comments (3)
Also the hacking instructions don't point out that you need to run the following still from the checkout directory
It sounds like you're using an older version. Recent versions do not require AOT compilation of leiningen any more. If you're seeing problems on the latest, could you paste a stack trace so we can debug?
from leiningen.
When trying to run:
lein deps
On my own project I get the following:
Leiningen is not installed. Please run "lein self-install". Exception in thread "main" java.lang.NoClassDefFoundError: clojure/main Caused by: java.lang.ClassNotFoundException: clojure.main at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:319) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330) at java.lang.ClassLoader.loadClass(ClassLoader.java:254) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
I can only get things to work with the following patch to bin/lein on leiningen/master.
Modified bin/lein diff --git a/bin/lein b/bin/lein index 5612773..c02561f 100755 --- a/bin/lein +++ b/bin/lein @@ -31,9 +31,12 @@ if [ -r "$BIN_DIR/../src/leiningen/core.clj" ]; then LEIN_DIR="$(dirname "$BIN_DIR")" CLASSPATH="$LEIN_DIR/src:$LEIN_DIR/classes:$LEIN_DIR/lib:$LEIN_JAR:$CLASSPATH" - if [ ! -r "lib/leiningen*jar" -a ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then + if [ ! -r "$BIN_DIR/../lib/leiningen.jar" -a ! -r "$LEIN_JAR" -a "$1" != "self-install" ]; then echo "Leiningen is not installed. Please run \"lein self-install\"." fi + if [ -r "$BIN_DIR/../lib/leiningen.jar" ]; then + CLASSPATH="$CLASSPATH:$BIN_DIR/../lib/leiningen.jar" + fi else # Not running from a checkout CLASSPATH="$CLASSPATH:$LEIN_JAR"
from leiningen.
Pushed a fix; thanks.
from leiningen.
Related Issues (20)
- lein deps hangs and exits due to StackOverflowError HOT 2
- Moving the repository to a new host HOT 13
- Lein uberjar producing different results to jar in different environments ( Ubuntu vs. OS X ) HOT 5
- Leiningen Homebrew 2.9.10 Upgrade Failing HOT 1
- Use :check-paths in check task if specified HOT 4
- CVE-2022-36033: Upgrade jsoup to version 1.15.3 HOT 3
- Leiningen 2.9.1 with java 7 HOT 2
- Add more versatile dependency/plugin resolution options (issue with plugin resolution order) HOT 1
- test-paths are included on classpath when building uberjar HOT 4
- changing the error message if a parent pom file is missing HOT 1
- Global :exclusions in profile do not apply to root :dependencies HOT 6
- A way to pass a profile to generated jar HOT 1
- Leiningen 2.11.0 breaks Eastwood HOT 12
- Leiningen hangs instead of complaining about not finding JAVA_HOME HOT 1
- Bump default clojure version to fix CVE-2024-22871 HOT 3
- lein doesn't fully reify org.apache.maven.wagon.Wagon HOT 1
- `lein repl` gets stuck when adding opentelemetry agent jar as `:jvm-opts` in a project that has `:java-source-paths`
- Java installed by sdkman not being recognized on emacs+cider runs HOT 2
- `WARNING: cat already refers to: #'clojure.core/cat in namespace: net.cgrand.parsley.fold` on `lein trampoline repl` HOT 3
- :plugin-repositories ignored when :local-repo is set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leiningen.