LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-29-2014, 11:27 PM   #1
AngryAngry
Member
 
Registered: Jan 2011
Posts: 61

Rep: Reputation: 0
Where are the programs? Where do things get installed?


I'm unsure where to look for programs.
I found a folder for gcc, but it did not have gcc.exe

I installed Allegro programming library but it did not say where it installed the program.
I'm also unable to find where menu programs in xfce link to (target program.exe)
I don't know where to look for this menu so I can manually open up the link file to find out.
 
Old 01-29-2014, 11:33 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
try typing
Code:
which gcc
into a terminal and seeing what path is returned.


.exe files usually means that its a windows file and they usually dont work in linux.
 
Old 01-30-2014, 01:17 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Note also that an extension of '.exe' is an MSWin thing.
Executables don't have an extension in *nix.
If you want to check the file type, try file cmd thus
Code:
file somefilename
 
Old 01-30-2014, 01:23 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
In Linux/UNIX systems programs don't get installed the way they do in Windows. The binaries are usually installed int /usr/bin, libraries into /usr/lib, and so on. More info on that can be found here: http://www.pathname.com/fhs/
 
Old 01-30-2014, 02:26 AM   #5
AngryAngry
Member
 
Registered: Jan 2011
Posts: 61

Original Poster
Rep: Reputation: 0
Thanks for that 'which [program name]' thing

So if I create a program with gcc I was told to make it .exe, but what should the extension be if it is a linux program?
 
Old 01-30-2014, 02:43 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,133

Rep: Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272Reputation: 2272
extension is not important for the unix. In general it tries to identify the type of the file by its content, not by the extension. (that is the command file - see man page of it).
Extension is used to make the file type visible for yourself, for humans, for the users only.
So you can make your app as somename.exe, it will not be a problem at all, just it is not the usual way (in linux).
Executables usually have no extension (on linux).
 
Old 01-30-2014, 09:32 AM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,029

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i usually put an .x at the end (but whatever floats your boat).

after using windows throughout my childhood seeing a file without a '.suf[fix]' seems naked. but its totally cosmetic. unlike windows files dont have to have a certain name to be functional -- you can essentially rename buju-banton.mp3 to financial-report.pdf and using the file command it will look at the first few bytes of the file and realize it is a music file.

Last edited by schneidz; 01-30-2014 at 09:42 AM.
 
Old 01-30-2014, 03:31 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,110
Blog Entries: 10

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
Quote:
Originally Posted by AngryAngry View Post
Thanks for that 'which [program name]' thing

So if I create a program with gcc I was told to make it .exe, but what should the extension be if it is a linux program?
Another concept about that is that you were being told to make that program "executable" as in permissions.

Code:
ls -l
will show you the permissions and if it doesn't have 'x' for owner, then you can't execute it. I think mostly when you compile a file using gcc, it uses your umask to generate the permissions for your new file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Un installing things installed from source JDM7480 Linux - Newbie 3 09-10-2007 12:50 PM
Programs installed with package manager aren't recognised by other programs fraserm Linux - Software 3 04-21-2007 01:38 PM
Which programs do the same things? shilo Slackware 14 08-09-2004 09:36 AM
How to get newly installed programs in programs list Brosky Linux - Software 5 02-06-2004 04:45 PM
Just installed 9.1, need help with some things... Justin33 Slackware 2 10-30-2003 11:15 PM


All times are GMT -5. The time now is 07:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration