Correct command for running linux program?
-
So i'm trying to run a simple data generator in Linux but either i'm using the wrong command or i just plain don't know wtf i am doing. It generates dates and stuff to a spreadsheet which i need to make a c program for to sort them out and make a spreadsheet to note how many times each date occurs. Unfortunately, cant get the dates generated to make the program to read the dates. Any help apreciated This is the link to the linux program. http://omega.uta.edu/~darin/CSE1320/dates-generator-linux
-
Answer:
I can't tell if you may be missing some required libraries and/or if this binary is made for your distro (binaries from one Linux-distro may not run on another), but here are some tip... If it's a GUI program, you must be in X (inside the graphical user interface) before attempting to run the program. Open a terminal-window in X (e.g. xterm) and type in the name of the program as described below. When you type in just a program's name, the shell only look for it in the directories listed in the PATH enviroment-variable -- so if it's not in /bin, /usr/bin or /usr/local/bin, odds are it won't be found. To run it then, you must type in the full path to it: E.g. /home/me/bin/program , ~/bin/program , ./bin/program or /home/me/program ... or if it's in the directory you're in, ./program (the . means "current directory"). Further more, the program must be marked as executable. Try ls -l , if the program doesn't have an x or s at it's permissions (e.g. rw-r--r-- and not rwxr-xr-x or rwsr-sr-x or similar), you must set it with chmod a+x program_name (you must own the program or be root to do so). If the program also included libraries and they now are "installed" somewhere in your home-directory (or another non-standard location), you must add this location to the search-path for the dynamic linker.
Josh Zee at Yahoo! Answers Visit the source
Other answers
I can't tell if you may be missing some required libraries and/or if this binary is made for your distro (binaries from one Linux-distro may not run on another), but here are some tip... If it's a GUI program, you must be in X (inside the graphical user interface) before attempting to run the program. Open a terminal-window in X (e.g. xterm) and type in the name of the program as described below. When you type in just a program's name, the shell only look for it in the directories listed in the PATH enviroment-variable -- so if it's not in /bin, /usr/bin or /usr/local/bin, odds are it won't be found. To run it then, you must type in the full path to it: E.g. /home/me/bin/program , ~/bin/program , ./bin/program or /home/me/program ... or if it's in the directory you're in, ./program (the . means "current directory"). Further more, the program must be marked as executable. Try ls -l , if the program doesn't have an x or s at it's permissions (e.g. rw-r--r-- and not rwxr-xr-x or rwsr-sr-x or similar), you must set it with chmod a+x program_name (you must own the program or be root to do so). If the program also included libraries and they now are "installed" somewhere in your home-directory (or another non-standard location), you must add this location to the search-path for the dynamic linker.
koppe74
you should explain what you've already done. There are a few thigns you might try. 1) cd to the directory where the download is located 2) type the name of the download and click enter. 3) if nothing happens you could try this: 1) run the command ./configure 2) run the command 'make' 3) run the command 'make install' then try running the program again. may or may not work.
Sd Sd
you should explain what you've already done. There are a few thigns you might try. 1) cd to the directory where the download is located 2) type the name of the download and click enter. 3) if nothing happens you could try this: 1) run the command ./configure 2) run the command 'make' 3) run the command 'make install' then try running the program again. may or may not work.
Sd Sd
Related Q & A:
- How To Run A Command In Ubuntu?Best solution by Yahoo! Answers
- How to clear the command history in the console?Best solution by blender.stackexchange.com
- Does the Linux Professional Institute Certification (LPIC) program have an advantage in trying to find a job?Best solution by Yahoo! Answers
- How to change brightness on Linux desktop through the command line?Best solution by Super User
- What is the difference between internal command and external command in Linux?Best solution by answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.