Solved

Install other packages Redhat

Posted on 1997-02-19
3
214 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
Comment Utility
Edited text of question
0
 
LVL 2

Accepted Solution

by:
dux earned 50 total points
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now