<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Compile Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/compile/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/compile/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:34:47 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>ERROR Failed to compile with 8 errors (Running ❯ npm run dev Failed to compile with 1 errors Unexpected token)</title>
		<link>https://www.scmgalaxy.com/tutorials/error-failed-to-compile-with-8-errors-running-%e2%9d%af-npm-run-dev-failed-to-compile-with-1-errors-unexpected-token/</link>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 24 Apr 2021 11:15:19 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[unexpected_token]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5978</guid>

					<description><![CDATA[<p>When you using &#8220;laravel 5.5&#8221; and changes in &#8220;resourse/asset&#8221; after that run commands &#8220;npm run dev&#8221; then showing this error. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-failed-to-compile-with-8-errors-running-%e2%9d%af-npm-run-dev-failed-to-compile-with-1-errors-unexpected-token/">ERROR Failed to compile with 8 errors (Running ❯ npm run dev Failed to compile with 1 errors Unexpected token)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">When you using &#8220;laravel 5.5&#8221; and changes in &#8220;resourse/asset&#8221; after that run commands &#8220;npm run dev&#8221; then showing this error.</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="257" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed-1024x257.png" alt="" class="wp-image-5979" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed-1024x257.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed-300x75.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed-768x193.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed-1536x386.png 1536w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/ERROR-Failed-to-compile-with-8-errors-Running-❯-npm-run-dev-Failed.png 1795w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Then run below commands &#8211;</p>



<h2 class="wp-block-heading">Step-1</h2>



<p class="wp-block-paragraph"><strong>npm rebuild node-sass</strong></p>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading">Step -2</h2>



<p class="wp-block-paragraph"><strong>npm run dev</strong></p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="175" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-31-1024x175.png" alt="" class="wp-image-5986" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-31-1024x175.png 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-31-300x51.png 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-31-768x131.png 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/image-31.png 1432w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">After that you project will be run.</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/error-failed-to-compile-with-8-errors-running-%e2%9d%af-npm-run-dev-failed-to-compile-with-1-errors-unexpected-token/">ERROR Failed to compile with 8 errors (Running ❯ npm run dev Failed to compile with 1 errors Unexpected token)</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>How to compile and build Gerrit Plugins?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 19 Aug 2018 20:09:20 +0000</pubDate>
				<category><![CDATA[Gerrit]]></category>
		<category><![CDATA[Bazel]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Plugins]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=5171</guid>

					<description><![CDATA[<p>To build Gerrit Plugins from source, you need: A Linux or macOS system (Windows is not supported at this time) [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/">How to compile and build Gerrit Plugins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>To build Gerrit Plugins from source, you need:</strong></p>
<p>A Linux or macOS system (Windows is not supported at this time)</p>
<p><strong>zip, unzip, wget</strong></p>
<pre>$yum install zip -y
$ yum install unzip -y
$ yum install wget -y
$ yum install git -y</pre>
<p><strong>Python 2 or 3</strong><br />
This is installed in each RHEL 7 and Ubunutu server by defaul.</p>
<p><strong>Node.js</strong></p>
<pre>curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
OR
curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
sudo yum -y install nodejs</pre>
<p><strong>Bazel</strong></p>
<pre>## RHEL/CentOS 7 64-Bit ##
$ wget https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo
$ cp vbatts-bazel-epel-7.repo /etc/yum.repos.d/
$ yum install -y bazel</pre>
<p><strong>How to Installing Bazel on Ubuntu?</strong><br />
https://docs.bazel.build/versions/master/install-ubuntu.html</p>
<p><strong>Maven</strong></p>
<pre>
$ cd /opt
$ wget http://www-us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.zip
$ unzip apache-maven-3.5.4-bin.zip
$ mv apache-maven-3.5.4 maven
$ export PATH=$PATH:/op/maven/bin</pre>
<p><strong>gcc</strong></p>
<pre class="brush: plain; title: ; notranslate">$ sudo yum install gcc-c++ make</pre>
<p><strong>Now, Bazel in tree driven means it can only be built from within Gerrit tree. Clone or link the plugin into gerrit/plugins directory:</strong></p>
<p><strong># First become a non-root user</strong></p>
<p><strong>A JDK for Java 8</strong></p>
<pre>
$ cd
$ wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.tar.gz
$ tar -xvf jdk-8u181-linux-x64.tar.gz
$ export JAVA_HOME=/home/ec2-user/jdk1.8.0_181
$ java -version
</pre>
<p><strong>Follow for Gerrit.war</strong></p>
<pre>
$ git clone --recursive https://gerrit.googlesource.com/gerrit
$ cd gerrit 
$ bazel build release
</pre>
<p><strong>Follow for plugins such as its-jira</strong></p>
<pre>
$ cd plugins
$ git clone https://gerrit.googlesource.com/plugins/its-jira
$ git clone https://gerrit.googlesource.com/plugins/its-base
$ bazel build plugins/its-jira
</pre>
<p><strong>The output can be normally found in the following directory:</strong></p>
<pre>bazel-genfiles/plugins/its-jira/its-jira.jar</pre>
<p># Some plugins describe their build process in src/main/resources/Documentation/build.md file. It may worth checking.</p>
<p># Some plugins cane be build using maven as well</p>
<p><strong>Reference</strong></p>
<ul>
<li>https://gerrit-review.googlesource.com/Documentation/dev-bazel.html</li>
<li>https://gerrit.googlesource.com/gerrit/</li>
<li>https://gerrit-review.googlesource.com/Documentation/cmd-plugin-install.html</li>
<li>https://gerrit-review.googlesource.com/Documentation/dev-build-plugins.html</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/">How to compile and build Gerrit Plugins?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-compile-and-build-gerrit-plugins/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Simple Ant Example &#8211; clean, prepare, and compile tasks</title>
		<link>https://www.scmgalaxy.com/tutorials/sample-ant-clean-prepare-and-compile-tasks/</link>
					<comments>https://www.scmgalaxy.com/tutorials/sample-ant-clean-prepare-and-compile-tasks/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 22 Jul 2010 11:04:50 +0000</pubDate>
				<category><![CDATA[Apache Ant]]></category>
		<category><![CDATA[and compile example]]></category>
		<category><![CDATA[Ant Build]]></category>
		<category><![CDATA[Ant clean]]></category>
		<category><![CDATA[Ant Example]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[Clean]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Echo]]></category>
		<category><![CDATA[Example]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Prepare]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Sample]]></category>
		<category><![CDATA[Scipt]]></category>
		<category><![CDATA[Simple Ant Example]]></category>
		<category><![CDATA[Task]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/07/22/sample-ant-clean-prepare-and-compile-tasks/</guid>

					<description><![CDATA[<p>Sample Ant clean, prepare, and compile tasks &#60;target name=&#8221;clean&#8221;&#62; &#60;echo&#62;=== CLEAN ===&#60;/echo&#62; &#60;delete failonerror=&#8221;false&#8221;&#62; &#60;fileset dir=&#8221;${dest.dir}&#8221; includes=&#8221;**/*&#8221;/&#62; &#60;/delete&#62; &#60;delete dir=&#8221;${temp.dir}&#8221; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-ant-clean-prepare-and-compile-tasks/">Simple Ant Example &#8211; clean, prepare, and compile tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-4415" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/sample-ant-clean-prepare-an.png" alt="ant-clean-prepare-and-compile-tasks" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/sample-ant-clean-prepare-an.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/07/sample-ant-clean-prepare-an-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Sample Ant clean, prepare, and compile tasks</strong></p>
<p>&lt;target name=&#8221;clean&#8221;&gt;<br />
&lt;echo&gt;=== CLEAN ===&lt;/echo&gt;<br />
&lt;delete failonerror=&#8221;false&#8221;&gt;<br />
&lt;fileset dir=&#8221;${dest.dir}&#8221; includes=&#8221;**/*&#8221;/&gt;<br />
&lt;/delete&gt;<br />
&lt;delete dir=&#8221;${temp.dir}&#8221; /&gt;<br />
&lt;/target&gt;</p>
<p>&lt;target name=&#8221;prepare&#8221; depends=&#8221;clean&#8221;&gt;<br />
&lt;echo&gt;=== PREPARE ===&lt;/echo&gt;<br />
&lt;mkdir dir=&#8221;${dest.dir}&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${temp.dir}&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${temp.dir.lib}&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${temp.dir.meta-inf}&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${temp.dir.web-inf}&#8221; /&gt;<br />
&lt;mkdir dir=&#8221;${temp.dir.classes}&#8221; /&gt;<br />
&lt;/target&gt;</p>
<p>&lt;target name=&#8221;compile&#8221; depends=&#8221;prepare&#8221;&gt;<br />
&lt;echo&gt;=== COMPILE ===&lt;/echo&gt;<br />
&lt;echo&gt;Compiling ${src.dir} files &#8230;&lt;/echo&gt;<br />
&lt;javac debug=&#8221;on&#8221; srcdir=&#8221;${src.dir}&#8221; destdir=&#8221;${temp.dir.classes}&#8221; includes=&#8221;**/*&#8221;&gt;<br />
&lt;classpath refid=&#8221;build.class.path&#8221; /&gt;<br />
&lt;/javac&gt;</p>
<p>&lt;!&#8211; compile files on the src-tests path &#8211;&gt;<br />
&lt;echo&gt;Compiling ${src.tests.dir} files &#8230;&lt;/echo&gt;<br />
&lt;javac debug=&#8221;on&#8221; srcdir=&#8221;${src.tests.dir}&#8221; destdir=&#8221;${temp.dir.classes}&#8221; includes=&#8221;com/**&#8221;&gt;<br />
&lt;classpath refid=&#8221;build.class.path&#8221; /&gt;<br />
&lt;/javac&gt;<br />
&lt;/target&gt;</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/sample-ant-clean-prepare-and-compile-tasks/">Simple Ant Example &#8211; clean, prepare, and compile tasks</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/sample-ant-clean-prepare-and-compile-tasks/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Issues Compiling VS2010 solutions (with web projects) from Nant &#124; MSB4064 error</title>
		<link>https://www.scmgalaxy.com/tutorials/issues-compiling-vs2010-solutions-with-web-projects-from-nant/</link>
					<comments>https://www.scmgalaxy.com/tutorials/issues-compiling-vs2010-solutions-with-web-projects-from-nant/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 13:31:46 +0000</pubDate>
				<category><![CDATA[Nant]]></category>
		<category><![CDATA[command line compilation error VS2010]]></category>
		<category><![CDATA[Compilation error in VS2010]]></category>
		<category><![CDATA[Compile]]></category>
		<category><![CDATA[Compile error Visual Studio 2010]]></category>
		<category><![CDATA[Compiling issue in VS2010]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Instruction]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[MSB4064 error]]></category>
		<category><![CDATA[MSB4064 error Solution]]></category>
		<category><![CDATA[MSB4064 issue]]></category>
		<category><![CDATA[NAnt]]></category>
		<category><![CDATA[nant.exe]]></category>
		<category><![CDATA[Project Upgrade to Visual Studio 2010]]></category>
		<category><![CDATA[Solution]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[VisualStudio 2010]]></category>
		<category><![CDATA[VS2010]]></category>
		<category><![CDATA[web projects]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/03/09/issues-compiling-vs2010-solutions-with-web-projects-from-nant/</guid>

					<description><![CDATA[<p>Recently I upgraded a project of mine (the Dimecasts code base) to use VisualStudio 2010.  In the process everything worked [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/issues-compiling-vs2010-solutions-with-web-projects-from-nant/">Issues Compiling VS2010 solutions (with web projects) from Nant | MSB4064 error</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone wp-image-4131 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/vs2010-solutions-with-web-p.png" alt="vs2010-compiling-issues" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/vs2010-solutions-with-web-p.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/03/vs2010-solutions-with-web-p-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p>Recently I upgraded a project of mine (the Dimecasts code base) to use VisualStudio 2010.  In the process everything worked just fine from the IDE, but when I tried to compile it from the command line I would get the following errors:</p>
<p>Error MSB4064: The &#8220;Retries&#8221; parameter is not supported by the &#8220;Copy&#8221; task.<br />
Error MSB4063: THe &#8220;Copy&#8221; task could be initialized with its input parameter.</p>
<p>After a bit a googling I came across a post which (and of course i cannot find it now) said that if you open up your .proj files and change the line that pointed to the v10.0 build of web applications and reset it back to 9.0 everything would compile.  And this did work&#8230; BUT when you try to open that project up again in VS 2010 it will simply revert your changes&#8230; this is not a working solution.</p>
<p>Next I decided to switch my target framework in Nant from 3.5 to 4.0, but of course my nant.exe.config file does not support 4.0 yet.  So after a bit more googling I found this post that gives details on how to add the missing values to the config file.</p>
<p>When I added the config information to my Nant.exe.config file things were better, but still not great.  Now I was getting an error that said:</p>
<p>The &#8220;vendor&#8221; attribute does not exist, or has no value.</p>
<p>To resolve this I added the following under the node in my config<br />
vendor=&#8221;Microsoft&#8221;</p>
<p>After this I got another error&#8230;. This time it said that .Net Framework 4.0 was not installed.  But I know this is not valid.  After looking at the information for a few more seconds I realized the issue.  The example config from the post above was build on an older version of the 4.0 framework (.20506) and I have .30128.</p>
<p>I changed all values in the nant.exe.config value that was v4.0.20506 to be v4.0.30128 and NOW I am able to compile.</p>
<p>So long story short, if you are getting the MSB4064 error you need to do the following:</p>
<p>1. Point nant to use the 4.0 framework tools<br />
2. Follow this post  and copy the framework section to your Nant.exe.config file<br />
3. Add the missing &#8216;vendor&#8217; attribute to the new framework section<br />
4. Update the version in the new framework section to match the version you have on disk (check C:\Windows\Microsoft.NET\Framework for versions)<br />
5. Compile again</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/issues-compiling-vs2010-solutions-with-web-projects-from-nant/">Issues Compiling VS2010 solutions (with web projects) from Nant | MSB4064 error</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/issues-compiling-vs2010-solutions-with-web-projects-from-nant/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
