You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Randy Abernethy (JIRA)" <ji...@apache.org> on 2016/02/16 16:54:18 UTC

[jira] [Comment Edited] (THRIFT-1385) make install doesn't install java library in the setted folder

    [ https://issues.apache.org/jira/browse/THRIFT-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148824#comment-15148824 ] 

Randy Abernethy edited comment on THRIFT-1385 at 2/16/16 3:53 PM:
------------------------------------------------------------------

This patch allows 3 prefix options with JAVA:

No Prefix
------------------------
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/usr/local/lib/libthrift-1.0.0.jar

root@310dce6012b6:/thrift# rm /usr/local/lib/libthrift-1.0.0.jar

JAVA_PREFIX
------------------------
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp JAVA_PREFIX=$HOME
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/root/usr/local/lib/libthrift-1.0.0.jar

root@310dce6012b6:/thrift# rm /root/usr/local/lib/libthrift-1.0.0.jar

PREFIX
------------------------
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp PREFIX=/tmp
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/tmp/usr/local/lib/libthrift-1.0.0.jar



was (Author: codesf):
This patch allows 3 prefix options with JAVA:

### No Prefix
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/usr/local/lib/libthrift-1.0.0.jar

root@310dce6012b6:/thrift# rm /usr/local/lib/libthrift-1.0.0.jar

### JAVA_PREFIX
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp JAVA_PREFIX=$HOME
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/root/usr/local/lib/libthrift-1.0.0.jar

root@310dce6012b6:/thrift# rm /root/usr/local/lib/libthrift-1.0.0.jar

### PREFIX
root@310dce6012b6:/thrift# ./configure --without-python --without-cpp PREFIX=/tmp
...
root@310dce6012b6:/thrift# make install
...
root@310dce6012b6:/thrift# find / -name libthrift-1.0.0.jar
/thrift/lib/java/build/libthrift-1.0.0.jar
/tmp/usr/local/lib/libthrift-1.0.0.jar


> make install doesn't install java library in the setted folder
> --------------------------------------------------------------
>
>                 Key: THRIFT-1385
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1385
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Java - Library
>         Environment: -- Ant version
> $ ant -version
> Apache Ant(TM) version 1.8.2 compiled on December 20 2010
> -- Commands
> svn checkout http://svn.apache.org/repos/asf/thrift/trunk thrift
> cd thrift
> ./bootstrap.sh
> ./configure --prefix=${HOME}/fakeroot --without-cpp --without-boost --without-libevent --without-zlib --without-c_glib --without-csharp --without-erlang --without-python --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go
> make && make install
>            Reporter: Verdoïa Laurent
>            Assignee: Randy Abernethy
>             Fix For: 0.9.4
>
>         Attachments: 0001-java-config-prefix-fix.patch, install.patch
>
>
> make install failed on the java library with this error message:
> ./thrift/lib/java/build.xml:135: Failed to copy ./thrift/lib/java/build/libthrift-0.8.0-snapshot-javadoc.jar to /usr/local/lib/libthrift-0.8.0-snapshot-javadoc.jar due to java.io.FileNotFoundException /usr/local/lib/libthrift-0.8.0-snapshot-javadoc.jar (Permission non accordée)
> For the safety I verified if the file /thrift/lib/java/build/libthrift-0.8.0-snapshot-javadoc.jar exists; and the file exists.
> But the source file is not the problem here !
> Why the install basename is /usr/local/lib/ even with --prefix=${HOME}/fakeroot
> The fakeroot folder exists too.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)