Closed hanyun2019 closed 5 years ago
Hello,
You need to install scala and make sure that its bin directory on you PATH:
I am assuming that SCALA_HOME is the place you will install scala.
I am using scala-2.11.8.
export PATH=$SCALA_HOME/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$HADOOP_HOME/bin:$PATH
Hope this helps,
best regards, Mahmoud Parsian
On Jun 14, 2019, at 7:20 AM, hanyun2019 notifications@github.com wrote:
UserdeMacBook-Pro:data-algorithms-book user$ ant Buildfile: /Users/user/Documents/Hadoop/data-algorithms-book/build.xml
init: [mkdir] Created dir: /Users/user/Documents/Hadoop/data-algorithms-book/build [mkdir] Created dir: /Users/user/Documents/Hadoop/data-algorithms-book/dist [taskdef] Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found.
build_jar: [echo] compiling scala src...
BUILD FAILED /Users/user/Documents/Hadoop/data-algorithms-book/build.xml:34: Problem: failed to create task or type scalac Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mahmoudparsian/data-algorithms-book/issues/33?email_source=notifications&email_token=AATUJUH4GWJEARQ5S7QY5A3P2OSLRA5CNFSM4HYIKJIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GZSGHFQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AATUJUHKLD7SK6GI76WEOYLP2OSLRANCNFSM4HYIKJIA.
Also, you can build with maven:
mvn clean package
This is resolved.
UserdeMacBook-Pro:data-algorithms-book user$ ant Buildfile: /Users/user/Documents/Hadoop/data-algorithms-book/build.xml
init: [mkdir] Created dir: /Users/user/Documents/Hadoop/data-algorithms-book/build [mkdir] Created dir: /Users/user/Documents/Hadoop/data-algorithms-book/dist [taskdef] Could not load definitions from resource scala/tools/ant/antlib.xml. It could not be found.
build_jar: [echo] compiling scala src...
BUILD FAILED /Users/user/Documents/Hadoop/data-algorithms-book/build.xml:34: Problem: failed to create task or type scalac Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any/ declarations have taken place.