Running Gradle on Ubuntu 13.10

前端 未结 4 1534
情歌与酒
情歌与酒 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.

提交回复
热议问题