Ask Your Question
0

Environment setup error - term 'call' is not recognized in PowerShell

asked 2020-03-26 08:19:57 -0500

Vuro H gravatar image

Hi, I am a ROS beginner installing ROS 2 on Windows and at the stage of sourcing the ROS 2 setup file to set up the workspace in PowerShell. However, when I enter the command call C:\dev\ros2_eloquent\local_setup.bat (which I have verified to be the correct directory), I receive the following error:

call : The term 'call' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ call C:\dev\ros2_eloquent\local_setup.bat
+ ~~~~
    + CategoryInfo          : ObjectNotFound: (call:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

What should I do to solve this? Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-03-26 11:44:29 -0500

Dirk Thomas gravatar image

These instructions are intended to be used with the cmd prompt.

If you want to use PowerShell you need to to invoke the setup file ending in .ps1 (which is the extension for PowerShell scripts).

edit flag offensive delete link more

Comments

Thanks a lot, works well in cmd. How do I invoke the setup file ending in .psl?

Vuro H gravatar image Vuro H  ( 2020-03-26 11:51:17 -0500 )edit

With just the filename.

Dirk Thomas gravatar image Dirk Thomas  ( 2020-03-26 11:59:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2020-03-26 08:19:57 -0500

Seen: 15 times

Last updated: Mar 26