Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - Building HBase trunk on windows using cygwin


Copy link to this message
-
Re: Building HBase trunk on windows using cygwin
Suraj Varma 2011-10-10, 16:27
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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
>>>
>>
>