Unable to start server

Hi, I am very new to the community, I am just trying to install stardog-5.3-2.1 on a mac, initially it gave me the error
Adhiraj$ stardog-admin server start
-bash: stardog-admin: command not found

Then I changed the stardog-admin file to stardog-admin.sh

Then I am getting the following error:
Adhiraj$ sh stardog-admin server start
stardog-admin: line 53: syntax error near unexpected token >' stardog-admin: line 53: tail -n 0 -f $LOG_FILE > >(grep -v “^INFO”) &’

I’m not quite sure what the problem is there but it shouldn’t be necessary to rename the stardog-admin command. It would probably be ok if you did but it could be causing a problem so I’d change it back to eliminate that variable. I’m guessing there is a problem with your initial installation. I’d double check that you have $STARDOG_HOME set correctly. It probably couldn’t find the stardog-admin command because you don’t have your PATH set correctly. Add export PATH=$STARDOG_HOME/bin/:$PATH right after where you’re setting STARDOG_HOME.

It could possibly be the version of bash you’re running. What do you get when you run bash --version ? I’m a little surprised that the error references stardog-admin and not stardog-admin.sh since you said you renamed it so I’m wondering what’s actually being run.

I was following the following quickstart guide.

And my bash version is as follows:

Adhirajs-MacBook-Pro:bin Adhiraj$ bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
Copyright © 2007 Free Software Foundation, Inc.

Ok, I was only asking about the bash version because if the remote possibility you were running some crazy old Mac but it looks current. My suggestion would be to go back, clean everything up, and go back through the guide line by line taking care to follow each step exactly. Not finding the stardog-admin command indicates that you missed something along the way.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.