ultramango / gear360pano

Simple script to create equirectangular panorama by stitching images from Samsung Gear 360
MIT License
225 stars 55 forks source link

Command Not Found in Mac #33

Closed paulyuatgithub closed 6 years ago

paulyuatgithub commented 7 years ago

Hi,

After installation, path modification on .bash_profile, and chmod the gear360pano.cmd to executable, I tried to run your script in Mac.

However, I got "-bash: gear360pano.cmd: command not found"

Do you know why ? Thanks, Paul

durkie commented 7 years ago

this sounds like a path issue. two things to figure out:

ultramango commented 7 years ago

Hi,

Since I have now access to a Mac I will check it.

Just a wild, dumb guess, did you run the script like this (mind the dot and slash)?

./gear360pano.cmd

On *nix systems, usually, current directory (.) is not in the path. So if you try to run the script directly (gear360pano.cmd) it will not work.

Another guess is that Mac doesn't like the trickery with having Windows and Linux version in the same file. Second semi-random fix: add #!/usr/bin/env bash or #!/bin/bash at the very beggining of the file.

durkie commented 7 years ago

The Win/Linux version in the same file isn't an issue -- I'm running it on a mac no problem.

ultramango commented 6 years ago

@paulyuatgithub - do you still have the problem with running the script on Mac?

ultramango commented 6 years ago

No update on the case - assuming no longer a problem.