Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get Atlassian SDK to run from /opt dir

Richard Snyder May 28, 2024

I'm new to this, but I've been trying to install the atlassian sdk and I'm stuck on a step that isn't well documented.  From this link: https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/https://community.atlassian.com/t5/Products/ct-p/products

 

I followed the .tgz file approach.  I placed the sdk in the /opt directory.  Then to test the instructions state to open a terminal and just run "atlas-version".  I get nothing.  I get:

bash: atlas-version: command not found.

Now if I navigate into the /opt/atlassian-plugin-sdk/bin and run the atlas-version directly it works.  What linking am I missing?  I would think additional hooks would need to be setup for an application to be run in the /opt dir.

1 answer

1 accepted

0 votes
Answer accepted
Robert Wen_Cprime_
Community Champion
May 28, 2024

Hi @Richard Snyder !  Welcome to the Atlassian Community!

This sounds like you didn't set your PATH environment variable.  Basically, Linux checks the directories in the PATH environment variable when evaluating whether something is a command to run.

To append the Atlassian SDK path type:

> export PATH="/opt/atlassian-plugin-sdk/bin:$PATH"

Note this works as long as the shell is active.  To make the changes permanent, add the same line to your .bashrc

Richard Snyder May 29, 2024

Thank you for that information, it's basic but I was having a hard time figuring it out.  Not sure if it should be included in the instructions linked above, but it would be helpful as a tip in step 3.

Suggest an answer

Log in or Sign up to answer