Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

S.B.G

Moderator emeritus
Original poster
Sep 8, 2010
26,914
10,989
Detroit
Are there any Linux experts around these here OS X forums? I loaded Ubuntu 12.10 (64-bit) on a Dell Dimension 9200 yesterday and it's running really slow. It previously had Windows 7 Ultimate (64-bit) on it and it ran great.

I know I haven't provided much detail here, but does anyone have an idea of where I can start to look? I'm thinking of reloading it with the 32-bit version to see if it runs better.
 
So Are you using Ubuntu Desktop or Server? For this kind of stuff I tent to avoid all of the GUi stuff.

B

Well I downloaded the desktop version. Should I go for the server version? I don't know a lot of command line syntax for Linux and depend on Internet searches for exact instructions on how to do some stuff. But I am not incapable of learning. I just haven't messed with any Linux distro's in probably 5 years or so.
 
I put 10.10 32-bit on it Friday and it's running much better now. However I'm having the darndest time getting Dan's Guardian to install now. I had it installed on 12.10 but now I don't know what's going on.

I have the package in the Downloads folder and when I run ./configure in Terminal per the instructions I get this:

Code:
configure error: error: C++ compiler cannot create executables
 
Here's an old thread with some things to try http://www.linuxquestions.org/questions/linux-newbie-8/c-compiler-cannot-create-executables-222588/

Can you post a bit more of the ./configure output there may be other clues in there.

B

Yep, I was just trying to get logged into MR on the Linux box so I could copy it.

Code:
myname@myname-desktop:~/Downloads$ cd dansguardian-2.12.0.3
myname@myname-desktop:~/Downloads/dansguardian-2.12.0.3$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/myname/Downloads/dansguardian-2.12.0.3':
configure: error: C++ compiler cannot create executables
See `config.log' for more details

Here is the config.log:

Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by dansguardian configure 2.12.0.0, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = myname-desktop
uname -m = i686
uname -r = 2.6.35-19-generic
uname -s = Linux
uname -v = #28-Ubuntu SMP Sun Aug 29 06:36:51 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2428: checking for a BSD-compatible install
configure:2496: result: /usr/bin/install -c
configure:2507: checking whether build environment is sane
configure:2557: result: yes
configure:2698: checking for a thread-safe mkdir -p
configure:2737: result: /bin/mkdir -p
configure:2750: checking for gawk
configure:2780: result: no
configure:2750: checking for mawk
configure:2766: found /usr/bin/mawk
configure:2777: result: mawk
configure:2788: checking whether make sets $(MAKE)
configure:2810: result: yes
configure:2970: checking for g++
configure:3000: result: no
configure:2970: checking for c++
configure:3000: result: no
configure:2970: checking for gpp
configure:3000: result: no
configure:2970: checking for aCC
configure:3000: result: no
configure:2970: checking for CC
configure:3000: result: no
configure:2970: checking for cxx
configure:3000: result: no
configure:2970: checking for cc++
configure:3000: result: no
configure:2970: checking for cl.exe
configure:3000: result: no
configure:2970: checking for FCC
configure:3000: result: no
configure:2970: checking for KCC
configure:3000: result: no
configure:2970: checking for RCC
configure:3000: result: no
configure:2970: checking for xlC_r
configure:3000: result: no
configure:2970: checking for xlC
configure:3000: result: no
configure:3024: checking for C++ compiler version
configure:3033: g++ --version >&5
./configure: line 3035: g++: command not found
configure:3044: $? = 127
configure:3033: g++ -v >&5
./configure: line 3035: g++: command not found
configure:3044: $? = 127
configure:3033: g++ -V >&5
./configure: line 3035: g++: command not found
configure:3044: $? = 127
configure:3033: g++ -qversion >&5
./configure: line 3035: g++: command not found
configure:3044: $? = 127
configure:3064: checking whether the C++ compiler works
configure:3086: g++    conftest.cpp  >&5
./configure: line 3088: g++: command not found
configure:3090: $? = 127
configure:3128: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "dansguardian"
| #define PACKAGE_TARNAME "dansguardian"
| #define PACKAGE_VERSION "2.12.0.0"
| #define PACKAGE_STRING "dansguardian 2.12.0.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "dansguardian"
| #define VERSION "2.12.0.0"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3133: error: in `/home/myname/Downloads/dansguardian-2.12.0.3':
configure:3135: error: C++ compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PCRE_CFLAGS_set=
ac_cv_env_PCRE_CFLAGS_value=
ac_cv_env_PCRE_LIBS_set=
ac_cv_env_PCRE_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=
ac_cv_env_PKG_CONFIG_PATH_value=
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AUTOCONF='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/missing --run autoconf'
AUTOHEADER='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/missing --run autoheader'
AUTOMAKE='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/missing --run automake-1.11'
AVASTDSUPPORT=''
AWK='mawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CLAMDSUPPORT=''
COMMANDLINESUPPORT=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DGBINDIR=''
DGCONFDIR=''
DGCONFFILE=''
DGDATADIR=''
DGLIBDIR=''
DGLOGLOCATION=''
DGPIDDIR=''
DGPROXYGROUP=''
DGPROXYUSER=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EMAILSUPPORT=''
ENABLE_AVASTD_FALSE=''
ENABLE_AVASTD_TRUE=''
ENABLE_CLAMD_FALSE=''
ENABLE_CLAMD_TRUE=''
ENABLE_COMMANDLINE_FALSE=''
ENABLE_COMMANDLINE_TRUE=''
ENABLE_FANCYDM_FALSE=''
ENABLE_FANCYDM_TRUE=''
ENABLE_ICAP_FALSE=''
ENABLE_ICAP_TRUE=''
ENABLE_KAVD_FALSE=''
ENABLE_KAVD_TRUE=''
ENABLE_NTLM_FALSE=''
ENABLE_NTLM_TRUE=''
ENABLE_TRICKLEDM_FALSE=''
ENABLE_TRICKLEDM_TRUE=''
EXEEXT=''
FANCYSUPPORT=''
GREP=''
HAVE_PCRE_FALSE=''
HAVE_PCRE_TRUE=''
ICAPSUPPORT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
KAVDSUPPORT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NEED_CSCONFIGS_FALSE=''
NEED_CSCONFIGS_TRUE=''
NEED_CSLISTS_FALSE=''
NEED_CSLISTS_TRUE=''
NEED_DMLISTS_FALSE=''
NEED_DMLISTS_TRUE=''
NTLMSUPPORT=''
OBJEXT=''
ORIGIPSUPPORT=''
PACKAGE='dansguardian'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='dansguardian'
PACKAGE_STRING='dansguardian 2.12.0.0'
PACKAGE_TARNAME='dansguardian'
PACKAGE_URL=''
PACKAGE_VERSION='2.12.0.0'
PATH_SEPARATOR=':'
PCRE_CFLAGS=''
PCRE_LIBS=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TRICKLESUPPORT=''
VERSION='2.12.0.0'
ac_ct_CC=''
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/myname/Downloads/dansguardian-2.12.0.3/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "dansguardian"
#define PACKAGE_TARNAME "dansguardian"
#define PACKAGE_VERSION "2.12.0.0"
#define PACKAGE_STRING "dansguardian 2.12.0.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "dansguardian"
#define VERSION "2.12.0.0"

configure: exit 77
 
Last edited:
In this case it looks like you don't have gcc installed at all or it can't find it.

B

That's what I was wondering too as I was reading through that URL you gave. Now to figure out what gcc is and how to install that. Seriously, I'm a big dummy when it come to Linux, I need baby steps. :eek::(

I did get a laugh out of this post on that Linux site where a user compiled Macintosh's "Hello World".

According to Ubuntu Software Center, the GNU Compiler Collection (base package) is installed. along with a few other related software packages to gcc.
 
Last edited:
Can you try building the "Hello World" test as per the linked thread?

Does g++ exist in one of the directories in PATH as seen by config?

Code:
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games

B
 
Can you try building the "Hello World" test as per the linked thread?

Does g++ exist in one of the directories in PATH as seen by config?

Code:
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
B

Ummm... what do I type in Terminal to check that? I am able to cd into those directories, but I cannot seem to list what's in them.
 
Ummm... what do I type in Terminal to check that? I am able to cd into those directories, but I cannot seem to list what's in them.

I'd try
Code:
whoami
ls -ltr /usr
ls -ltr /usr/bin

If you can't see what's in them, you may have a permissions error which would be odd to say the least.

Does this work? (Enter your password when one is requested).

Code:
sudo ./configure


B
 
I'd try
Code:
whoami
ls -ltr /usr
ls -ltr /usr/bin
If you can't see what's in them, you may have a permissions error which would be odd to say the least.

Does this work? (Enter your password when one is requested).

Code:
sudo ./configure
B
When I do whoami, I get my username listed.

Okay with ls -ltr /usr I get the following

Code:
drwxr-xr-x  10 root root  4096 2010-09-01 10:03 local
drwxr-xr-x   2 root root  4096 2010-09-01 10:16 games
drwxr-xr-x  37 root root  4096 2010-09-01 10:17 include
drwxrwsr-x   4 root src   4096 2010-09-01 10:23 src
drwxr-xr-x 297 root root 12288 2013-02-08 11:26 share
drwxr-xr-x   2 root root 12288 2013-02-08 11:27 sbin
drcannot create executableswxr-xr-x 192 root root 49152 2013-02-08 11:53 lib
drwxr-xr-x   2 root root 36864 2013-02-08 12:53 bin
gcc is listed under ls -ltr /usr/bin

Code:
lrwxrwxrwx 1 root   root          7 2013-02-08 11:21 gcc -> gcc-4.4

What do I type to compile the "Hello World" thing?

Edit: I'm getting the feeling it's a permissions problem with the Downloads folder the package is in from my reading on LinuxQuestions.com. How do I check for the proper permissions?
 
Last edited:
Looks OK.

Create a file simple.cpp with the following contents:

Code:
#include <iostream.h>
using namespace std;

int main( void )
{
  cout << "Hello World!" << endl;
  return 0;
}

Then run

Code:
cpp -o simple simple.cpp
./simple


----------

Edit: I'm getting the feeling it's a permissions problem with the Downloads folder the package is in from my reading on LinuxQuestions.com. How do I check for the proper permissions?

Code:
ls -l

shows you the owner:group and permissions mask.

Two options: either compile as root (using sudo) or gain ownership of the source tree with chown.

B
 
Looks OK.

Create a file simple.cpp with the following contents:

Code:
#include <iostream.h>
using namespace std;

int main( void )
{
  cout << "Hello World!" << endl;
  return 0;
}
Then run

Code:
cpp -o simple simple.cpp
./simple


----------



Code:
ls -l
shows you the owner:group and permissions mask.

Two options: either compile as root (using sudo) or gain ownership of the source tree with chown.

B

I created the file in the Downloads directory and when I run the first line I get this:

Code:
myname@myname-desktop:~/Downloads$ cpp -o simple simple.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
 
Ack. Brain fart.

Try

Code:
g++ -o simple simple.cpp
B

I get this:

Code:
myname@myname-desktop:~/Downloads$ g++ -o simple simple.cpp
The program 'g++' can be found in the following packages:
 * g++
 * pentium-builder
Try: sudo apt-get install <selected package>
 
I get this:

Code:
myname@myname-desktop:~/Downloads$ g++ -o simple simple.cpp
The program 'g++' can be found in the following packages:
 * g++
 * pentium-builder
Try: sudo apt-get install <selected package>

OK, now we're getting somewhere.

I'd do the

Code:
sudo apt-get install g++
sudo apt-get install pentium-builder

Or, install both packages from synaptic/your favorite apt front end.

B
 
OK, now we're getting somewhere.

I'd do the

Code:
sudo apt-get install g++
sudo apt-get install pentium-builder
Or, install both packages from synaptic/your favorite apt front end.

B

I'll try that. I just did this...

I ran this command

Code:
myname@myname-desktop:~/Downloads/dansguardian-2.12.0.3$ sudo apt-get install ./configure
And I got a whole bunch of stuff like this that whizzed by (and this is just a small portion of it)

Code:
E: Release 'configure' for 'libreadline5' was not found
E: Release 'configure' for 'libreadline4' was not found
E: Release 'configure' for 'bzr-pqm' was not found
E: Release 'configure' for 'libwpd0' was not found
E: Release 'configure' for 'libwpd2' was not found
E: Release 'configure' for 'libwpd3' was not found
E: Release 'configure' for 'libwpd4' was not found
E: Release 'configure' for 'libwpd5' was not found
E: Release 'configure' for 'libwpd6' was not found
E: Release 'configure' for 'libwpd8' was not found
E: Release 'configure' for 'libwpd8c2' was not found
E: Release 'configure' for 'devicekit-power' was not found
E: Release 'configure' for 'python2.3-twisted-names' was not found
E: Release 'configure' for 'python2.4-twisted-names' was not found
E: Release 'configure' for 'cups-ppdc' was not found
E: Release 'configure' for 'xpdf-korean' was not found
E: Release 'configure' for 'xpdf-japanese' was not found
E: Release 'configure' for 'xpdf-chinese-traditional' was not found
E: Release 'configure' for 'xpdf-chinese-simplified' was not found
E: Release 'configure' for 'cups-pdf' was not found
E: Release 'configure' for 'cupsddk-drivers' was not found
E: Release 'configure' for 'libapache-mod-auth-kerb' was not found
E: Release 'configure' for 'libapache2-mod-auth-kerb' was not found
E: Release 'configure' for 'lsof-2.0.35' was not found
E: Release 'configure' for 'lsof-2.0.36' was not found
E: Release 'configure' for 'lsof-2.0.38' was not found
E: Release 'configure' for 'liblaunchpad-integration0' was not found

Edi: Ran the second command you said and got this:

Code:
myname@myname-desktop:~/Downloads/dansguardian-2.12.0.3$ sudo apt-get install pentium-builder
Reading package lists... Done
Building dependency tree       
Reading state information... Done
N: Ignoring file 'ubuntu-mozilla-security-ppa-maverick.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to locate package pentium-builder
 
Seems like you have a bunch of stuff that isn't installed quite right. :(

Does g++ on the Hello World work now?

B
 
I haven't run 12.x, but I found 10.x to be lighter weight than 11.x.

EDIT: What are you doing with this box anyhow.

B

Seems like you have a bunch of stuff that isn't installed quite right. :(

Does g++ on the Hello World work now?

B

Well, I think you're right about 10.x being more lightweight. It was so lightweight that it was missing a bunch of necessary programs needed to install certain things, such as what I wanted. :p Since my Linux skills are severely lacking, I don't want to try and install all the missing things. Heck, it took me an hour to get rid of Firefox 3 and install Firefox 18 with the shortcut in the menu bar! :eek:

So I just installed 12.10 again, only this time the 32-bit edition and it's still just as slow as the 64-bit version. Le sigh.

I'm thinking about looking for another flavor of Linux, like Debian or Gentoo or something.
 
I'm thinking about looking for another flavor of Linux, like Debian or Gentoo or something.

Both are less "friendly" than Ubuntu though so be prepared. CentOS is what the real Linux users use around work, though I long ago gave up on RedHat in favor of Debian/Ubuntu in my own installs.

B
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.