You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Mayuresh <ma...@gmail.com> on 2011/10/05 14:43:17 UTC

Re: Building HBase trunk on windows using cygwin

Got this to work with the hack of replace the original code in pom.xml
with the following lines:
                <echo file="${project.build.directory}/copynativelibs.sh">
					pp=`echo "/cygdrive/${project.build.directory}"|sed -e
's/://g'|sed -e 's/\\\\/\\//g'`
					echo "pp is $pp"
                    if [ `ls $pp/nativelib | wc -l` -ne 0 ]; then
                      cp -PR $pp/nativelib/lib*
$pp/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/lib/native/${build.platform}
                    fi
                </echo>

Is this something we should fix, to take care of building on all platforms?

On Wed, Oct 5, 2011 at 4:51 PM, Mayuresh <ma...@gmail.com> wrote:
> Hi,
>
> I am trying to build cygwin on windos on cygwin and the build fails
> with the following error:
> [INFO] [antrun:run {execution: package}]
> [INFO] Executing tasks
>
> main:
>    [mkdir] Created dir: D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNA
> PSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: No
>  such file or directory
>     [exec] tar (child): Cannot connect to D: resolve failed
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] An Ant BuildException has occured: exec returned: 3328
>
> Apparently the buildmail.xml file which is generated has the following contents:
>  <echo file="D:\workspace\mkshirsa\hbase-trunk\target/copynativelibs.sh">if
> [ `ls D:\workspace\mkshirsa\hbase-trunk\target/nativelib | wc -l` -ne
> 0 ]; then
>                      cp -PR
> D:\workspace\mkshirsa\hbase-trunk\target/nativelib/lib*
> D:\workspace\mkshirsa\hbase-trunk\target/hbase-0.93-SNAPSHOT/hbase-0.93-SNAPSHOT/lib/native/${build.platform}
>                    fi</echo>
>
> Has anyone faced this before?
>
> --
> -Mayuresh
>



-- 
-Mayuresh

Re: Building HBase trunk on windows using cygwin

Posted by Suraj Varma <sv...@gmail.com>.
Created: https://issues.apache.org/jira/browse/HBASE-4565

I'll try to get a patch for this ...
--Suraj

On Sun, Oct 9, 2011 at 4:57 PM, Stack <st...@duboce.net> wrote:
> Please open a JIRA.  A patch would be much appreciated (and some
> testimony that works for you since few of us, I believe, dev on
> windows).
>
> Thanks Suraj,
> St.Ack
>
> On Sun, Oct 9, 2011 at 4:39 PM, Suraj Varma <sv...@gmail.com> wrote:
>> Just like trunk, it also fails for 0.92-SNAPSHOT on cygwin; a hack
>> similar to the below was needed to get it built.
>>
>> I would certainly like the maven build to work cross-platform.
>>
>> I can open a Jira if there are no objections ...
>> --Suraj
>>
>> On Wed, Oct 5, 2011 at 5:43 AM, Mayuresh <ma...@gmail.com> wrote:
>>> Got this to work with the hack of replace the original code in pom.xml
>>> with the following lines:
>>>                <echo file="${project.build.directory}/copynativelibs.sh">
>>>                                        pp=`echo "/cygdrive/${project.build.directory}"|sed -e
>>> 's/://g'|sed -e 's/\\\\/\\//g'`
>>>                                        echo "pp is $pp"
>>>                    if [ `ls $pp/nativelib | wc -l` -ne 0 ]; then
>>>                      cp -PR $pp/nativelib/lib*
>>> $pp/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/lib/native/${build.platform}
>>>                    fi
>>>                </echo>
>>>
>>> Is this something we should fix, to take care of building on all platforms?
>>>
>>> On Wed, Oct 5, 2011 at 4:51 PM, Mayuresh <ma...@gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I am trying to build cygwin on windos on cygwin and the build fails
>>>> with the following error:
>>>> [INFO] [antrun:run {execution: package}]
>>>> [INFO] Executing tasks
>>>>
>>>> main:
>>>>    [mkdir] Created dir: D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNA
>>>> PSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>>>>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: No
>>>>  such file or directory
>>>>     [exec] tar (child): Cannot connect to D: resolve failed
>>>> [INFO] ------------------------------------------------------------------------
>>>> [ERROR] BUILD ERROR
>>>> [INFO] ------------------------------------------------------------------------
>>>> [INFO] An Ant BuildException has occured: exec returned: 3328
>>>>
>>>> Apparently the buildmail.xml file which is generated has the following contents:
>>>>  <echo file="D:\workspace\mkshirsa\hbase-trunk\target/copynativelibs.sh">if
>>>> [ `ls D:\workspace\mkshirsa\hbase-trunk\target/nativelib | wc -l` -ne
>>>> 0 ]; then
>>>>                      cp -PR
>>>> D:\workspace\mkshirsa\hbase-trunk\target/nativelib/lib*
>>>> D:\workspace\mkshirsa\hbase-trunk\target/hbase-0.93-SNAPSHOT/hbase-0.93-SNAPSHOT/lib/native/${build.platform}
>>>>                    fi</echo>
>>>>
>>>> Has anyone faced this before?
>>>>
>>>> --
>>>> -Mayuresh
>>>>
>>>
>>>
>>>
>>> --
>>> -Mayuresh
>>>
>>
>

Re: Building HBase trunk on windows using cygwin

Posted by Stack <st...@duboce.net>.
Please open a JIRA.  A patch would be much appreciated (and some
testimony that works for you since few of us, I believe, dev on
windows).

Thanks Suraj,
St.Ack

On Sun, Oct 9, 2011 at 4:39 PM, Suraj Varma <sv...@gmail.com> wrote:
> Just like trunk, it also fails for 0.92-SNAPSHOT on cygwin; a hack
> similar to the below was needed to get it built.
>
> I would certainly like the maven build to work cross-platform.
>
> I can open a Jira if there are no objections ...
> --Suraj
>
> On Wed, Oct 5, 2011 at 5:43 AM, Mayuresh <ma...@gmail.com> wrote:
>> Got this to work with the hack of replace the original code in pom.xml
>> with the following lines:
>>                <echo file="${project.build.directory}/copynativelibs.sh">
>>                                        pp=`echo "/cygdrive/${project.build.directory}"|sed -e
>> 's/://g'|sed -e 's/\\\\/\\//g'`
>>                                        echo "pp is $pp"
>>                    if [ `ls $pp/nativelib | wc -l` -ne 0 ]; then
>>                      cp -PR $pp/nativelib/lib*
>> $pp/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/lib/native/${build.platform}
>>                    fi
>>                </echo>
>>
>> Is this something we should fix, to take care of building on all platforms?
>>
>> On Wed, Oct 5, 2011 at 4:51 PM, Mayuresh <ma...@gmail.com> wrote:
>>> Hi,
>>>
>>> I am trying to build cygwin on windos on cygwin and the build fails
>>> with the following error:
>>> [INFO] [antrun:run {execution: package}]
>>> [INFO] Executing tasks
>>>
>>> main:
>>>    [mkdir] Created dir: D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNA
>>> PSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>>>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: No
>>>  such file or directory
>>>     [exec] tar (child): Cannot connect to D: resolve failed
>>> [INFO] ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO] ------------------------------------------------------------------------
>>> [INFO] An Ant BuildException has occured: exec returned: 3328
>>>
>>> Apparently the buildmail.xml file which is generated has the following contents:
>>>  <echo file="D:\workspace\mkshirsa\hbase-trunk\target/copynativelibs.sh">if
>>> [ `ls D:\workspace\mkshirsa\hbase-trunk\target/nativelib | wc -l` -ne
>>> 0 ]; then
>>>                      cp -PR
>>> D:\workspace\mkshirsa\hbase-trunk\target/nativelib/lib*
>>> D:\workspace\mkshirsa\hbase-trunk\target/hbase-0.93-SNAPSHOT/hbase-0.93-SNAPSHOT/lib/native/${build.platform}
>>>                    fi</echo>
>>>
>>> Has anyone faced this before?
>>>
>>> --
>>> -Mayuresh
>>>
>>
>>
>>
>> --
>> -Mayuresh
>>
>

Re: Building HBase trunk on windows using cygwin

Posted by Suraj Varma <sv...@gmail.com>.
Just like trunk, it also fails for 0.92-SNAPSHOT on cygwin; a hack
similar to the below was needed to get it built.

I would certainly like the maven build to work cross-platform.

I can open a Jira if there are no objections ...
--Suraj

On Wed, Oct 5, 2011 at 5:43 AM, Mayuresh <ma...@gmail.com> wrote:
> Got this to work with the hack of replace the original code in pom.xml
> with the following lines:
>                <echo file="${project.build.directory}/copynativelibs.sh">
>                                        pp=`echo "/cygdrive/${project.build.directory}"|sed -e
> 's/://g'|sed -e 's/\\\\/\\//g'`
>                                        echo "pp is $pp"
>                    if [ `ls $pp/nativelib | wc -l` -ne 0 ]; then
>                      cp -PR $pp/nativelib/lib*
> $pp/${project.artifactId}-${project.version}/${project.artifactId}-${project.version}/lib/native/${build.platform}
>                    fi
>                </echo>
>
> Is this something we should fix, to take care of building on all platforms?
>
> On Wed, Oct 5, 2011 at 4:51 PM, Mayuresh <ma...@gmail.com> wrote:
>> Hi,
>>
>> I am trying to build cygwin on windos on cygwin and the build fails
>> with the following error:
>> [INFO] [antrun:run {execution: package}]
>> [INFO] Executing tasks
>>
>> main:
>>    [mkdir] Created dir: D:\workspace\mkshirsa\hbase-trunk\target\hbase-0.93-SNA
>> PSHOT\hbase-0.93-SNAPSHOT\lib\native\${build.platform}
>>     [exec] ls: cannot access D:workspacemkshirsahbase-trunktarget/nativelib: No
>>  such file or directory
>>     [exec] tar (child): Cannot connect to D: resolve failed
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] An Ant BuildException has occured: exec returned: 3328
>>
>> Apparently the buildmail.xml file which is generated has the following contents:
>>  <echo file="D:\workspace\mkshirsa\hbase-trunk\target/copynativelibs.sh">if
>> [ `ls D:\workspace\mkshirsa\hbase-trunk\target/nativelib | wc -l` -ne
>> 0 ]; then
>>                      cp -PR
>> D:\workspace\mkshirsa\hbase-trunk\target/nativelib/lib*
>> D:\workspace\mkshirsa\hbase-trunk\target/hbase-0.93-SNAPSHOT/hbase-0.93-SNAPSHOT/lib/native/${build.platform}
>>                    fi</echo>
>>
>> Has anyone faced this before?
>>
>> --
>> -Mayuresh
>>
>
>
>
> --
> -Mayuresh
>