LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2002, 03:29 AM   #1
icecream33
LQ Newbie
 
Registered: Oct 2002
Posts: 1

Rep: Reputation: 0
How do I compile?


I am running Redhat Linux 7.3 and apparently it did not come with a compiler because when I tried to install gcc-3.2, I get the message:

*** The command 'cc: command -o conftest -g conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

Do I need a precompiled version of gcc?
If so, where can I get it cuz I can't find it anywhere?
If not, what should I do?
 
Old 10-07-2002, 03:44 AM   #2
mayankjohri
Member
 
Registered: Mar 2002
Location: INDIA
Distribution: Mandrake Linux 9.2, Knoppix 3.0
Posts: 158

Rep: Reputation: 30
Try to install rpm

Why dont u try to install rpm of gcc instead .
 
Old 10-07-2002, 06:28 AM   #3
aizkorri
Member
 
Registered: Feb 2002
Location: Basque Country
Distribution: Fedora 14, Ubuntu 14.04
Posts: 434
Blog Entries: 1

Rep: Reputation: 55
Where did you install the compiler?, it should be in /bin, surely in /usr/bin or where the path is defined in your environment variables. Or, if you have an environment variable called CC, it shoud be directed where your gcc compiler is.

Write 'set' in the command prompt to see you environment variables.

Hope this helps.
 
Old 12-20-2017, 11:49 AM   #4
theheapWalker
LQ Newbie
 
Registered: Dec 2017
Posts: 21

Rep: Reputation: Disabled
the command set didn't show the location of gcc or cc and doesn't seem to show a variable for either of these compilers to be listed at.

below is the output of the set command. It has many many lines.
-----------------------------------------------------------------

[pclunixosu@localhost ~]$ set
BASH=/bin/bash
BASHOPTS=checkhash:checkwinsize:cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:his tappend:hostcomplete:huponexit:interactive_comments:login_shell:no_empty_cmd_completionrogcompro mptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="4" [2]="12" [3]="1" [4]="release" [5]="x86_64-mandriva-linux-gnu")
BASH_VERSION='4.4.12(1)-release'
BROWSER=/usr/bin/www-browser
BSNUM=999
CANBERRA_DRIVER=pulse
CHARSET=UTF-8
CLASS=beginner
COLORFGBG='15;0'
COLORTERM=truecolor
COLUMNS=131
CONFIG=/etc/sound/profiles/current/canberra.conf
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-5HJRnxtGlO,guid=283c211be9c653c71db2b5335a3a9389
DESKTOP_SESSION=99Plasma
DIRSTACK=()
DISPLAY=:0
EUID=500
GCONF_TMPDIR=/tmp
GDMSESSION=99Plasma
GDM_XSERVER_LOCATION=local
GNOME_KEYRING_CONTROL=/home/pclunixosu/.cache/keyring-6546AZ
GROUPS=()
GS_LIB=/home/pclunixosu/.fonts
GTK2_RC_FILES=/home/pclunixosu/.gtkrc-2.0
GTK_MODULES=canberra-gtk-module
G_FILENAME_ENCODING=@locale
HISTCONTROL=ignoredups
HISTFILE=/home/pclunixosu/.bash_history
HISTFILESIZE=1000
HISTSIZE=1000
HOME=/home/pclunixosu
HOSTNAME=localhost.localdomain
HOSTTYPE=x86_64
IFS=$' \t\n'
INPUTRC=/etc/inputrc
KDE_FULL_SESSION=true
KDE_SESSION_UID=500
KDE_SESSION_VERSION=5
KEYBOARD=us
KEYCHAINFILE=/home/pclunixosu/.keychain/localhost.localdomain-sh
KEYCHAINFILEGPG=/home/pclunixosu/.keychain/localhost.localdomain-sh-gpg
KEYCHAIN_KEYS=
KEYCHAIN_OPTIONS=
KEYTABLE=us
KF5=/usr
KONSOLE_DBUS_SERVICE=:1.40
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_WINDOW=/Windows/1
KONSOLE_PROFILE_NAME='Profile 1'
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_ADDRESS=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_MONETARY=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_PAPER=en_US.UTF-8
LC_SOURCED=1
LC_TELEPHONE=en_US.UTF-8
LC_TIME=en_US.UTF-8
LESS=-MM
LESSCHARSET=utf-8
LESSKEY=/etc/.less
LESSOPEN='|/usr/bin/lesspipe.sh %s'
LIBSAFE=no
LINES=32
LOGNAME=pclunixosu
LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00i=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01r=01;05; 37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42w=34;42:st=37;44:ex=01;32:*.cmd=01;32:*.ex e=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01; 31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31: *.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31 :*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.t z=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01 ;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.iso=01;31:*.wim=01;31:* .swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.JPG=01;35:*.JPEG=01;35:*.mjpg=01;35:*. mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xp m=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.ico=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx= 01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.divx=0 1;35:*.xvid=01;35:*.3gp=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;3 5:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*. gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.gem=01;35:*.ogv=01 ;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36 :*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.x spf=00;36:*.mp2=00;36:*.mod=00;36:*.xm=00;36:*.s3m=00;36:*.it=00;36:*.wma=00;36:*~=47;30:*.bak=47;30 :*.swp=47;30:*.bck=47;30:*.bk=47;30:*.old=47;30:*.tmp=47;30:*.save=47;30:*.rpmsave=47;30:*.rpmnew=47 ;30:'
LS_OPTIONS='-F --color=auto'
MACHTYPE=x86_64-mandriva-linux-gnu
MAIL=/var/spool/mail/pclunixosu
MAILCHECK=60
MDV_MENU_STYLE=discovery
META_CLASS=desktop
NLSPATH=/usr/share/locale/%l/%N
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/bin:/usr/lib64/qt5/bin:/usr/share/kf5:/usr/libexec:/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/pclunixosu/bin:/sbin:/usr/sbin:/home/pclunixosu/bin:/sbin:/usr/sbin
PIPESTATUS=([0]="0")
PPID=10645
PROFILEHOME=
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:$([[ "${PWD}" =~ ^"${HOME}"(/|$) ]] && echo "~${PWD#${HOME}}" || echo "${PWD}")\007"'
PS1='[\u@\h \W]\$ '
PS2='> '
PS4='+ '
PWD=/home/pclunixosu
PYTHONDONTWRITEBYTECODE=1
PYTHONSTARTUP=/etc/pythonrc.py
QML2_IMPORT_PATH=/usr/lib64/qt5/qml
QML_DISABLE_DISK_CACHE=1
QML_IMPORT_PATH=/usr/lib64/qt5/qml
QT4DOCDIR=/usr/share/doc/qt4
QT5DOCDIR=/usr/share/doc/qt5
QTDIR=/usr/lib64/qt4
QTDIR5=/usr/lib64/qt5
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_PLUGIN_PATH=/usr/lib64/qt5/plugins
QT_QUICK_CONTROLS_STYLE=org.kde.desktop
SECURITY=3
SESSION_MANAGER=local/localhost.localdomain:@/tmp/.ICE-unix/3037,unix/localhost.localdomain:/tmp/.ICE-unix/3037
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHELL_SESSION_ID=4034107049a141639cdb80a1e6dad3d5
SHLVL=2
SSH_AGENT_PID=2772
SSH_ASKPASS=/usr/lib64/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp//ssh-wsWEFSAFHrwJ/agent.2734
TERM=xterm-256color
TMP=/tmp/
TMPDIR=/tmp/
UID=500
USER=pclunixosu
WINDOWID=73400326
WINDOWPATH=8
XAUTHORITY=/home/pclunixosu/.Xauthority
XCURSOR_SIZE=0
XCURSOR_THEME=Breeze_Snow
XDG_CONFIG_DIRS=/etc/xdg/discovery:/etc/xdg
XDG_CURRENT_DESKTOP=KDE
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/usr/share/gdm/
XDG_RUNTIME_DIR=/tmp/runtime-pclunixosu
XDG_SESSION_COOKIE=localhost.localdomain-1513788294.891319-1776154673
XMODIFIERS=@im=none
XkbLayout=us
XkbModel=pc105
XkbOptions=compose:rwin
_=USERNAME
fif ()
{
find . -type f -print | xargs grep --color=auto "$1" 2> /dev/null
}
gawklibpath_append ()
{
[ -z "$AWKLIBPATH" ] && AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`;
export AWKLIBPATH="$AWKLIBPATH:$*"
}
gawklibpath_default ()
{
unset AWKLIBPATH;
export AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`
}
gawklibpath_prepend ()
{
[ -z "$AWKLIBPATH" ] && AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`;
export AWKLIBPATH="$*:$AWKLIBPATH"
}
gawkpath_append ()
{
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`;
export AWKPATH="$AWKPATH:$*"
}
gawkpath_default ()
{
unset AWKPATH;
export AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`
}
gawkpath_prepend ()
{
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`;
export AWKPATH="$*:$AWKPATH"
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 04:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 01:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM
why won't the following compile? purpleburple Programming 4 09-10-2002 07:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration