Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Install other packages Redhat

Posted on 1997-02-19
3
Medium Priority
?
227 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 100 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 …
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

916 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