# Build Documentation out of date?

**URL:** <https://community.konduit.ai/t/build-documentation-out-of-date/180>\
**Category:** DL4J\
**Created:** [February 26, 2020, 5:17pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180 "2020-02-26T17:17:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 5:17pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/1 "2020-02-26T17:17:21Z")

</div>

Hey All,

I’m trying to build the DL4J stack and was following the [Build from Source Page](https://deeplearning4j.org/docs/latest/deeplearning4j-build-from-source). I made it to the section that needs me to use the install script to build. However that install script link doesn’t actually exist anymore. Is there a more up to date guide to build from source?

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 5:44pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/2 "2020-02-26T17:44:27Z")

</div>

Thanks for flagging this.

We will be updating the build from source page very soon. Actually building is pretty simple after you’ve set up all the requirements:

```auto
mvn -B -V -U clean install -pl '!jumpy,!pydatavec,!pydl4j' -DskipTests=true -Dmaven.test.skip=true

```

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 5:53pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/3 "2020-02-26T17:53:09Z")

</div>

Thank you for the quick reply! Are the requirements still the same as described in the build page?

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 6:02pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/4 "2020-02-26T18:02:33Z")

</div>

The requirements should be still the same. If you can’t compile with the maven invocation above, then please tell us.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 6:13pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/5 "2020-02-26T18:13:51Z")

</div>

Hey treo, I’m getting this error once I start the maven command.

[ERROR] Failed to execute goal org.bytedeco:javacpp:1.5.3-SNAPSHOT:build (javacpp-cppbuild-validate) on project libnd4j: Execution javacpp-cppbuild-validate of goal org.bytedeco:javacpp:1.5.3-SNAPSHOT:build failed: Plugin org.bytedeco:javacpp:1.5.3-SNAPSHOT or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.bytedeco:openblas:jar:android-arm:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-x86:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:android-x86\_64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:ios-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:ios-x86\_64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-armhf:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-arm64:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:linux-ppc64le:0.3.7-1.5.3-SNAPSHOT, org.bytedeco:openblas:jar:windows-x86:0.3.7-1.5.3-SNAPSHOT: Could not find artifact org.bytedeco:openblas:jar:android-arm:0.3.7-1.5.3-SNAPSHOT in sonatype-nexus-snapshots ([https://oss.sonatype.org/content/repositories/snapshots](https://oss.sonatype.org/content/repositories/snapshots)) → [Help 1]

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 6:16pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/6 "2020-02-26T18:16:34Z")

</div>

Looks like the fix for this hasn’t been pushed to the eclipse repository yet. You can try building from `https://github.com/KonduitAI/deeplearning4j` but that fork is a bit more unstable, as most active development happens there.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 6:33pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/7 "2020-02-26T18:33:44Z")

</div>

Had some issues initialy but it turns out that was because of an old cmake version. Just needed to upgrade it. Seems like its building and is probably gonna take a while. Thanks for all the help. I’ll let you know if anything else comes up!

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 7:01pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/8 "2020-02-26T19:01:02Z")

</div>

Hey Treo, getting another during the build process. Any idea what my issue would be?

```auto
[WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireFilesExist failed with message:
!!! You have to compile libnd4j with cpu support first!
Some required files are missing:
/home/zamlz/src/java/dl4j_build/libnd4j/blas/NativeOps.h
/home/zamlz/src/java/dl4j_build/libnd4j/blasbuild/cpu/blas

```

Then later down the line I see,

```auto
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce (libnd4j-checks) on project nd4j-native: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [Help 1]

```

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 7:02pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/9 "2020-02-26T19:02:34Z")

</div>

You should have another error message further up the logs.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 7:28pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/10 "2020-02-26T19:28:34Z")

</div>

I see these other errors before the erro r messages I sent. (just searched for the word ERROR)

```auto
[ERROR] Error fetching link: /home/zamlz/src/java/deeplearning4j-konduit/nd4j/nd4j-shade/jackson/target/apidocs/package-list. Ignored it.
[ERROR] Error fetching link: /home/zamlz/src/java/deeplearning4j-konduit/nd4j/nd4j-shade/guava/target/apidocs/package-list. Ignored it.

```

Should I output my result with the `-e` or `-X` flag?

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 7:29pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/11 "2020-02-26T19:29:57Z")

</div>

That’s odd. Are you building only within the nd4j folder? The command I posted is meant to be run from the root folder.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 7:36pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/12 "2020-02-26T19:36:42Z")

</div>

Nope, I’m building within the root folder.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 7:38pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/13 "2020-02-26T19:38:51Z")

</div>

That’s weird then. Can you collect the full output and post the log here as an attachment, or on [gist.github.com](http://gist.github.com)?

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 8:06pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/14 "2020-02-26T20:06:06Z")

</div>

[https://gist.github.com/zamlz/29c4f24185ff6546ee63406cf011c7de](https://gist.github.com/zamlz/29c4f24185ff6546ee63406cf011c7de)

Its quite a big log but here it is.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 8:15pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/15 "2020-02-26T20:15:08Z")

</div>

Oh, you did enable full debug on it. The normal output level is usually enough to diagnose what is wrong.

Anyway, the files that it says are missing, are they actually missing?  
From what I see in the logs, libnd4j did compile successfully.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 8:29pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/16 "2020-02-26T20:29:32Z")

</div>

Yup appears that its actually missing.

```auto
`--> ls -la ./nd4j/nd4j-shade/{guava,jackson}/target/apidocs  
./nd4j/nd4j-shade/guava/target/apidocs:
total 8.0K
drwxr-xr-x 2 zamlz zamlz 4.0K Feb 26 11:55 ./
drwxr-xr-x 8 zamlz zamlz 4.0K Feb 26 11:55 ../

./nd4j/nd4j-shade/jackson/target/apidocs:
total 8.0K
drwxr-xr-x 2 zamlz zamlz 4.0K Feb 26 11:54 ./
drwxr-xr-x 8 zamlz zamlz 4.0K Feb 26 11:54 ../

```

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 8:31pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/17 "2020-02-26T20:31:06Z")

</div>

I didn’t mean the package-list files, those are red herrings. You can ignore them. It fails because of what you’ve posted earlier:

> [@zamlz](#):
>
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.RequireFilesExist failed with message: !!! You have to compile libnd4j with cpu support first! Some required files are missing: /home/zamlz/src/java/dl4j\_build/libnd4j/blas/NativeOps.h /home/zamlz/src/java/dl4j\_build/libnd4j/blasbuild/cpu/blas

Those files must exist.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 8:39pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/18 "2020-02-26T20:39:05Z")

</div>

Wait hold on. I just noticed something about that path. Its not in the folder I’m currently building in. So in the doc page I linked way earlier, they say to set the environment variable `$LIBND4J_HOME` and I had it set to `/home/zamlz/src/java/dl4j_build/libnd4j`. Could this be what is causing the issues? Because there are no files in there, thats for sure. The location of my root directory that I’m building from is `/home/zamlz/src/java/deeplearning4j-konduit`.

---

<div class="post-metadata">

**Author:** ![treo](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/treo/32/47_2.png) [@treo](https://community.konduit.ai/u/treo)\
**Post date:** [February 26, 2020, 8:51pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/19 "2020-02-26T20:51:08Z")

</div>

Yes that is exactly the reason.

---

<div class="post-metadata">

**Author:** ![zamlz](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/zamlz/32/95_2.png) [@zamlz](https://community.konduit.ai/u/zamlz)\
**Post date:** [February 26, 2020, 8:52pm UTC](https://community.konduit.ai/t/build-documentation-out-of-date/180/20 "2020-02-26T20:52:10Z")

</div>

Alright! Rebuilding now and hopefully thats the last of the errors. Thanks again for the help Treo!

[Next page](https://community.konduit.ai/t/build-documentation-out-of-date/180.md?page=2)
