Project

General

Profile

Dev Env setup issues

Added by wenli liu almost 5 years ago

Hi,

I have to build FWD in a restricted environment (Windows 10 64bit), and I have installed the following as instructed.

1). Java 1.8.0_191 JDK, set JAVA_HOME, and added JAVA_HOME\jre\bin\server to PATH, and copied jvm.lib to minGW.
2). Installed gradle 3.0, also tried 5.5. set GRAGLE_HOME and added GRAGLE_HOME\bin to PATH
3). Ant 1.10.6. Set ANT_HOME and added ANT_HOME\bin to PATH
4). Installed MinGW 4.9.0, added mingw64\bin to PATH
5). Copied the header files as well as the lib files of libffi to required locations
6). Unziped fwd_v3_2_0_trunk_rev_11281_20180821.zip to c:\fwd\p2j
7). Unziped fwd_v3_2_0_dependencies_trunk_rev_11281_20180821.zip to c:\fwd\p2j\local-repo
8). I started running "gradle all" for about an hour. It was just trying to connect to different repositories and to resolve things.

I have attached the output from "gradle --debug all" and please help.

Thanks a lot!
Wenli

debug.txt Magnifier (264 KB)


Replies (11)

RE: Dev Env setup issues - Added by Greg Shah almost 5 years ago

Wenli,

In your comments above, I am assuming that GRAGLE_HOME is actually GRADLE_HOME.

Some questions/ideas:

  1. By "restricted environment", do you mean that there is limited or no Internet access from the build system?
  2. If there is Internet access, is it through a proxy? The Install Gradle instructions document the way to specify proxy settings in a gradle.properties file.
  3. If there is no Internet access, did you try running gradle with the --offline option? This disables the network version checking.

Thanks,
Greg

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Thanks Greg for your quick reply! You are right, it is GRADLE_HOME.

1). There is no internet access from the build system.
2). The attached file shows the error when I ran with the --offline option. Some dependancies are missing?

Thanks again for helping me out!

debug1.txt Magnifier (3.05 KB)

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Hi Greg,

I manually added the missing dependancies and it started compiling. Now a dirrerent error. The whole output is attached. Should I add it to the local-repo? but I don't know which version to add.

[ant:javac] C:\FWD\p2j\src\com\goldencode\graphdb\GraphDB.java:70: error: package org.apache.tinkerpop.gremlin.structure does not exist
[ant:javac] import org.apache.tinkerpop.gremlin.structure.*;
[ant:javac] ^
[ant:javac] C:\FWD\p2j\src\com\goldencode\graphdb\GraphDB.java:89: error: cannot find symbol
[ant:javac] public static Graph obtainGraphDB(Configuration configuration)

Thanks,
Wenli

debug2.txt Magnifier (34.9 KB)

RE: Dev Env setup issues - Added by Hynek Cihlar almost 5 years ago

wenli liu wrote:

Hi Greg,

I manually added the missing dependancies and it started compiling. Now a dirrerent error. The whole output is attached. Should I add it to the local-repo? but I don't know which version to add.

Please post the list of items in local-repo, just the first dir level is fine. I'd like to make sure the layout in your local repo is correct. Also can you check whether the local-repo contains the file gremlin-core-3.2.3.jar in any of the subdirs?

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Hi Greg,

The list of items in local-repo is attached. Yes, gremlin-core-3.2.3.jar in under C:\FWD\p2j\local-repo\org\apache\tinkerpop\gremlin-core\3.2.3. A screenshot is also attached.

Thanks,
Wenli

localRepo.txt Magnifier - The list of items in local-repo (2.44 KB)

gremlin.PNG - gremlin-core-3.2.3.jar in subdirs. (9.57 KB)

RE: Dev Env setup issues - Added by Hynek Cihlar almost 5 years ago

Hynek Cihlar wrote:

wenli liu wrote:

Hi Greg,

I manually added the missing dependancies and it started compiling. Now a dirrerent error. The whole output is attached. Should I add it to the local-repo? but I don't know which version to add.

Please post the list of items in local-repo, just the first dir level is fine. I'd like to make sure the layout in your local repo is correct. Also can you check whether the local-repo contains the file gremlin-core-3.2.3.jar in any of the subdirs?

Wenli,

I'm looking at the errors and will get back to you. Meanwhile please rerun the build with --debug and paste the output here.

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Thanks Cihlar! I ran the following command and the output is attached.

gradle --offline all >debug.txt 2>&1

debug.txt Magnifier (34.9 KB)

RE: Dev Env setup issues - Added by Hynek Cihlar almost 5 years ago

wenli liu wrote:

Thanks Cihlar! I ran the following command and the output is attached.

gradle --offline all >debug.txt 2>&1

Please use the latest Gradle version 3 from https://gradle.org/releases/. There are some breaking changes in version 5. Keep the manually resolved dependencies.

I updated our wiki documentation to explicitly mention that Gradle 3 is required.

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Thanks but I have downgraded to V3 already.

c:\FWD\p2j>gradle -version

------------------------------------------------------------
Gradle 3.0
------------------------------------------------------------

Build time: 2016-08-15 13:15:01 UTC
Revision: ad76ba00f59ecb287bd3c037bd25fc3df13ca558

Groovy: 2.4.7
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM: 1.8.0_191 (Oracle Corporation 25.191-b12)
OS: Windows 10 10.0 amd64

RE: Dev Env setup issues - Added by Hynek Cihlar almost 5 years ago

wenli liu wrote:

Thanks but I have downgraded to V3 already.

I can replicate the GraphDB.java compilation error with Gradle version 5, but not with Gradle 3. Can you please give it another try and make sure to run Gradle 3? Also please provide the --debug output.

RE: Dev Env setup issues - Added by wenli liu almost 5 years ago

Morning Hynek,

I deleted gradle5.5 from my desktop and now I have only gradle 3.0. I reran the command in debug and the output is attached (is too big and I had to chop it up in pieces). Please note I do have ant-antlr and ant-parent 1.9.13 in my local-repo, and I use Ant 1.10.6. Could this be a source of the issue?

Thanks,
Wenli

debug-1.txt Magnifier (4.37 MB)

debug-2.txt Magnifier (4.37 MB)

debug-3.txt Magnifier (4.34 MB)

debug-4.txt Magnifier (3.87 MB)

ant-antlr1.9.13.PNG (8.81 KB)

antParent1.9.13.PNG (5.98 KB)

    (1-11/11)