You have download the source from the OCS server. As it you don't have the full package and setup.sh will never work. Please download the full package :
https://www.ocsinventory-ng.org/en/#download-en
https://www.ocsinventory-ng.org/en/#download-en