Solved

Install other packages Redhat

Posted on 1997-02-19
3
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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.:
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

630 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