Unable to run robomongo.sh using sh robomongo.sh in Ubuntu 14.04

痞子三分冷 提交于 2020-01-03 20:59:44

问题


I have Just downloaded the robomongo 64 bit for ubuntu from the Official site. Then I opened my terminal and went through the folder structure and executed the command from bin folder.

sh robomongo.sh

I'm getting an error like this

robomongo.sh: 5: robomongo.sh: Bad substitution

Help me.

Thanks in Advance


回答1:


To install MongoDB Administration: RoboMongo version (0.8.*) on Ubuntu
  1. Download 64 bit .deb package for Debian/Ubuntu
  2. Open .deb package with Ubuntu Software Center
  3. MongoDB Administration: RoboMongo has been installed on your linux machine

To install MongoDB Administration: RoboMongo version (0.9.*) on Ubuntu
  1. Download .tar.gz file for ubuntu [ Source: RoboMongo Website, for example 0.9.0 RC8 1.e robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz ]
  2. tar -xvzf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz [ Assuming you have robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz file into your Download directory ]
  3. sudo mv PATH_TO_RoboMongo_Tar_File /usr/local/lib/robomongo/

Example: sudo mv ~/Downloads/robomongo-0.9.0-rc8-linux-x86_64-c113244/ /usr/local/lib/robomongo/

  1. cd /usr/local/lib/robomongo/bin
  2. Right click on robomongo file i.e executable (application/x-executable)

    5.1. Now click on "Make Link" option

  3. You may put this shortcut icon to desktop to launch RoboMongo GUI




回答2:


in Terminal you can use just this command robomongo and you can install stable version robomongo with using sudo apt-get install robomongo




回答3:


Solution : when i downloaded the tar file from official site, I just opened it using ubuntu software center. It got Installed and working fine now.




回答4:


answer of @mistertandon is nice But I will be more clear

There Two ways to install robomongo program into ubuntu using command line:

First way

1.1 download tar.gz file from Official robomongo website(choose version you need to install and get it's tar.gz download file url)

wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz

1.2 extract tar.gz file

 tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz

1.3 mv files and folders into the result folder from extraction operation into folder robomongo under /usr/local/bin

sudo mkdir /usr/local/bin/robomongo
sudo mv  robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo

1.4 make sure excute file for robomongo program which exists under /usr/local/bin/robomongo/bin folder is excutable file

cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo ## run command only if robomongo isn't excutable file
./robomongo

Second way

2.1 download deb file from Official robomongo website(choose version you need to install and get it's deb download file url)

wget https://download.robomongo.org/0.8.5/linux/robomongo-0.8.5-x86_64.deb

2.2 install deb file using dpkg command line

sudo dpkg -i robomongo-0.8.5-x86_64.deb

2.3 open robomongo program using command line by run

robomongo

Very Important Notice:

all version less than robomongo program 0.9.* version has both deb file and tar.gz file download urls(I didn't know what is the reason for this) So If you need download version less than 0.9.* version you can use one of two ways But If you need download version 0.9.0 there only one way is the first ones

more links about install robomongo program: link 1, link 2




回答5:


If you are unable to run robo3T go to lib folder and delete libstdc++. There you will find two file with similiar name delete both and it will work.



来源:https://stackoverflow.com/questions/33233236/unable-to-run-robomongo-sh-using-sh-robomongo-sh-in-ubuntu-14-04

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!