On 09 Feb 2003 20:10:21 -0800 Arlo <[EMAIL PROTECTED]> wrote: > I noticed that when i try compiling something while in an x terminal > it doesn't work. I get an error saying: > checking whether the C compiler (gcc ) works... no > configure: error: installation or configuration problem: C compiler > cannot create executables. > make: *** [config.status] Error 1 > > If I just get into a normal terminal the same operation works fine. > What is different in X that makes gcc not work right? >
Many x terminals by default do not invoke themselves as a login shell; you need to do that with a configuration parameter. The parameters (and where you put them) vary with the type of xterm. Usually this is in .Xdefaults. Here's a sample .Xdefaults (for aterm): aterm*background: #ffffe0 aterm*foreground: black aterm*font: 10x20 aterm*loginShell: True aterm*savedLines: 300 If not invoked as a login shell, the xterm may not have complete path and environment setup as you do in a console session. Hope this helps. -- Collins Richey - Denver Area Athlon-XP gentoo 1.4_rc2++ system kde3.1 -- [EMAIL PROTECTED] mailing list
