The program GATE_calc requires the contents of folder Calc. I have succeeded in adding the path of the executable GATE_calc so that i may execute the program directly from terminal.

I have two issues now,

  1. I am able to run the program only as superuser. I'd like to know how to run the program as a normal user. (I had installed the program as root) while running as normal user i get "command not found" error.

  2. I am not able to view the contents of the program when called from terminal. It is only possible to execute if i call the program from the program directory.

Any solutions to these issues ?

Outputs while running the program :

These are the list of files in the program directory GATE_calculator-master :

 praphult@praphult-pc:/opt/GATE_calculator-master$ ls

 Browser.pro     CMakeFiles  GATE_calc

 GATE_calculator_build  Makefile  ui_widget.h  widget.u 

 Calc      cmake_install.cmake     GATE_calc_automoc.cpp

 License   moc_widget.cpp  widget.cpp   win_depends.md

 CMakeCache.txt  CMakeLists.txt       GATE_Calc.png          

 main.cpp               README.md       widget.h
  • Adjust your folder/file rights, e.g. add a group called calc or something add your user and give this group r-w-x rights respectivly to the files required. Or just change the ownership of your /opt/Gate_calculator-master with sudo chown <username> -R /opt/Gate_calculator-master – Ziazis Jun 28 '17 at 8:01
  • Is there a specific reason why you need this calculator? If you need a scientific calculator: sudo apt-get install galculator – koni_raid Jun 28 '17 at 8:08
  • @konrad Yes. Its the calculator used for GATE examination. GATE is engineering aptitude test conducted in India. – praphult Jun 28 '17 at 14:45
  • @Ziazis I did that but still when executing command in terminal its giving "GATE_calc : command not found" error. – praphult Jun 28 '17 at 14:58
  • Issue 1: You get command not found, because the program (GATE_calc) is not in your path; to get a list of your paths execute: env | grep PATH Issue 2: The program expects that you call the program within the folder, so it is a design fault. – koni_raid Jun 29 '17 at 8:21

Software Developer has resolved the issues! See https://github.com/samadritakarmakar/GATE_calculator/issues/1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.