'How to run Osmosis on Ubuntu after installation?

I was running osmosis on an Ubuntu terminal, yet the bash shell kept telling me there was no osmosis command found. I have referred to the installation wiki, and I have successfully pre-built and built osmosis from source. Still, nothing worked out when I ran the command line (The screenshot has been attached). Would anybody give any ideas about what's at play here?

fzhu@ug22:~/CMPUT391/Project3/src>git clone https://github.com/openstreetmap/osmosis.git
Cloning into 'osmosis'...
remote: Enumerating objects: 31574, done.
remote: Counting objects: 100% (146/146), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 31574 (delta 43), reused 99 (delta 29), pack-reused 31428
Receiving objects: 100% (31574/31574), 13.36 MiB | 14.65 MiB/s, done.
Resolving deltas: 100% (13400/13400), done.
Updating files: 100% (1024/1024), done.
fzhu@ug22:~/CMPUT391/Project3/src>cd osmosis
fzhu@ug22:~/CMPUT391/Project3/src/osmosis>./gradlew assemble
Downloading https://services.gradle.org/distributions/gradle-4.10-bin.zip
..........................................................................

Welcome to Gradle 4.10!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC3
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :osmosis-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-xml:compileJava
Note: /cshome/fzhu/CMPUT391/Project3/src/osmosis/osmosis-xml/src/main/java/org/openstreetmap/osmosis/xml/common/ElementWriter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-replication:compileJava
Note: /cshome/fzhu/CMPUT391/Project3/src/osmosis/osmosis-replication/src/main/java/org/openstreetmap/osmosis/replication/v0_6/ReplicationLagReader.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-apidb:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-osm-binary:compileJava
Note: /cshome/fzhu/CMPUT391/Project3/src/osmosis/osmosis-osm-binary/src/main/java/org/openstreetmap/osmosis/osmbinary/StringTable.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-pgsimple:compileJava
Note: /cshome/fzhu/CMPUT391/Project3/src/osmosis/osmosis-pgsimple/src/main/java/org/openstreetmap/osmosis/pgsimple/common/DatabaseContext.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

> Task :osmosis-pgsnapshot:compileJava
Note: /cshome/fzhu/CMPUT391/Project3/src/osmosis/osmosis-pgsnapshot/src/main/java/org/openstreetmap/osmosis/pgsnapshot/common/DatabaseContext.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

BUILD SUCCESSFUL in 1m 9s
110 actionable tasks: 110 executed
fzhu@ug22:~/CMPUT391/Project3/src/osmosis>osmosis --read-pbf alberta-latest.osm.pbf --bounding-box bottom=-55 left=-55 top=55 right=55 --write-xml edmonton.osm
-bash: osmosis: command not found


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source