Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i don't want to make .exe file. i want to execute my program
using its name.. like vi..
my program name is 'lncur' . i want to run my program using command
lncur. is there any way to do this
Originally posted by mili i don't want to make .exe file. i want to execute my program
using its name.. like vi..
my program name is 'lncur' . i want to run my program using command
lncur. is there any way to do this
linux only searches for a command using the path environment. Since the directory where lncur is located is not in your path then with out the ./ you will see a command not found error. BTW ./ is a shortcut for current working directory.
To see your current path environment use the following command:
echo $PATH
You can add a directory to your users path environment via your /.bash_profile file like:
PATH=$PATH:/data/myprogram
To add the path for all users add the directory to the /etc/profile file.
Of course you can always move the executable to a directory that is already in the path.
Hmm -- tough question... it depends how it was developed. You might have to do a
Code:
qmake
make
or perhaps
Code:
gcc main.c
maybe just
Code:
make
Did you write the app for qt? gnome? using an application editor? or is it a text-based proggy from emacs? do you have makefiles? and the list goes on, unfortunately. Let us know how you wrote the program, and what files are involved, then we can give you something to go on...
sorry, i got a bit ahead of myself there -- i thought you were looking for compiling info.
All you have to do is go into one of the bin directories (me, i prefer /usr/local/bin), be root, and type
[code]
ln -s *path to your program* /usr/local/bin/lncur
[code]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.