Solved

Install other packages Redhat

Posted on 1997-02-19
3
217 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nagios alerts 3 44
Backup & Restore 3 54
centos linux 65 123
awk to variable in bash 2 40
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
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 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…

808 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