Solved

Install other packages Redhat

Posted on 1997-02-19
3
218 Views
Last Modified: 2013-12-15
I just installed Redhat Linux on my machine. In order to
get the system working, I did not install a lot of the packages offered. In the manual, I was told that I can easily install the other packages later.
Now I want to install much of the other packages into my system. But I am lost as to how to access my CDrom thru
Linux or how to start installation without reinstalling my entire system over again.  Can someone help me with this relatively simple problem?  
I am also having a problem with the gcc compiler.  I compiled a simple C program(one that worked on another system).  But when I try to execute by type a.out, I get a message about: bash: a.out not found.  When I type ls, a.out is there.  What gives?  Could I have left out too much when installing that bash doesn't recognize a simple execution file?  Please help.  Thanks
0
Comment
Question by:Slack
3 Comments
 

Author Comment

by:Slack
ID: 1626730
Edited text of question
0
 
LVL 2

Accepted Solution

by:
dux earned 50 total points
ID: 1626731
From control-pannel use "File system configuration" to mount your CD-ROM (ussualy in /cdrom directory. After that, using "Package Management" tool (also from control-pannel) click Configure and set your install directory to /cdrom/RPMS (or something like this) and then click Available and select packages you want to install. Finnaly press Install button to install them.
To make a.out executable: chmod a+x a.out or chmod 755 a.out.
0
 

Expert Comment

by:jerkface
ID: 1626732
slack, i can help you out here!

in order to install your other packages you need to mount your cdrom...
if it's an ide or atapi (basically same thing) cdrom you need to mount it with the command:
      mount /dev/hdc /mnt/cdrom -t iso9660
1.  you need to do this as root
2.  this assumes your cdrom device file is /dev/hdc and not hdd       or hde or even hdb...if hdc doesn't work, try the others out!
3.  in xwindows, open up an xterm, and run glint, the red hat         package manager...

now with your c program, you can't just type it in and run it like that because you don't have the directory "." (the shorthand for the current directory)  in your path.
there are two solutions for this...
1.  just type ./a.out   <-- that works, i used that until it          totally annoyed me so badly that i used solution 2.
2.  add .  to your path.  as root, edit your /etc/profile and         where it says PATH add "."
3.  btw, when you compile a program, a.out is usually                 automatically executable.....i have never compiled a program      that didn't come out non-executable...

hope this helps!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question