Running Gradle on Ubuntu 13.10

前端 未结 4 1533
情歌与酒
情歌与酒 2021-02-07 11:49

I am having a problem running gradle on ubuntu 13.10, which I am assuming is the root of the issue.

I installed gradle using the below command



        
相关标签:
4条回答
  • 2021-02-07 12:16

    I've come up with the patch to the Makefile for libnative-platform-jni.

    sudo apt-get build-dep libnative-platform-java
    apt-get source libnative-platform-java
    cd libnative-platform-java-0.3~rc2/
    

    Apply this patch:

    --- Makefile.orig   2013-11-20 10:42:54.599476939 -0800
    +++ Makefile    2013-11-20 10:43:04.879476606 -0800
    @@ -28,7 +28,7 @@
      $(CXX) $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -o $@ $^
    
     $(ODIR)/libnative-platform-curses.so: $(OBJ_CURSES)
    -   $(CXX) $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -lcurses -shared -o $@ $^
    +   $(CXX) $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -o $@ $^ -lcurses
    
     $(JCLASSESDIR)/%.class: javafiles-list
      mkdir -p $(JCLASSESDIR)
    

    Run:

    dpkg-source --commit
    dpkg-buildpackage
    cd ..
    sudo dpkg -i libnative-platform-jni_0.3~rc2-2_amd64.deb
    

    Test with

    gradle -v
    

    See my comment here: https://bugs.launchpad.net/ubuntu/+source/gradle/+bug/1238322/comments/4

    Update: You may want to checkout the ppa here https://launchpad.net/~cwchien/+archive/gradle since gradle 1.4 is pretty old.

    0 讨论(0)
  • 2021-02-07 12:19

    I had the same issue with Ubuntu 13.10. Since 14.04 has been released now, you might consider upgrading: Gradle works perfectly on Ubuntu 14.04. However, I'd recommend downloading gradle from the gradle website since the official repos still only have gradle 1.4

    0 讨论(0)
  • 2021-02-07 12:20

    I was able to fix the above problem with advice from Vidya, manually adding gradle into the system allow gradle to correctly work.

    0 讨论(0)
  • 2021-02-07 12:23

    /home/stens/src/jvm/java-1.8.0-openjdk-amd64/bin/java: symbol lookup error: /usr/lib/jni/libnative-platform-curses.so: undefined symbol: tgetent

    This is the easiest workaround I've found ... download the deb here

    https://packages.debian.org/sid/amd64/libnative-platform-jni/download

    then install using

    sudo dpkg -i libnative-platform-jni_0.11-5_amd64.deb 
    

    now gradle works ... Ubuntu 17.10

    0 讨论(0)
提交回复
热议问题