Welcome to the Linux Foundation Forum!

Problem installing Network Manager.

I am new to installing programs and might just be missing something obvious. I am attempting to install Network Manager on Debian 2.6.26. When I do

./confiigure

I get

Permission Denied

so I am attempting to change the ownership to root with

chown root/

then getting

No such file or directory

when I do

ls

I get

No such file or directory

but then it proceeds to list the files in the directory.

Jed Stuart

Comments

  • mfillpotmfillpot Posts: 2,180
    Are you logged in as root?
    Is the file you are trying to execute executable by the root user?
  • Jed SJed S Posts: 10
    I have tried it as root and as user.
    The file is owned by user and suposedly executable by user although setuid is not on.
  • Jed SJed S Posts: 10
    I solved the chown problem. Chown did not like the directory name that was created during the unpacking of the package. It got called NetworkManager-0.8.2 . Changing it to just NetworkManager sorted that.

    I am still getting
    ./configure
    permission denied

    the install file tells me that there might need to be unusal options added to configure.
  • mfillpotmfillpot Posts: 2,180
    You don't want anything to be setuid unless it is absolutely necessary, so kick that out of your mind.

    Now you want to see the following when you check the output of "ls -l configure":
    -rwxr-xr-x 1 root root {filesize} {mod date} configure*
    the information in {} will be replaced with specific information from the file.

    If the permissions to now match what is shown then you can run "chmod 755 configure".
  • Jed SJed S Posts: 10
    Thanks, I got the permissions right and found that I needed to add the path to the gcc for ./configure to work. Now I am getting the error:
    C compiler cannot create executables.
    There seem to be a lot of people having this error message and I am yet to find a clear statement on what it could be.
  • mfillpotmfillpot Posts: 2,180
    The error message is due to the configure arguments not directing it to the proper architecture for your system. Most likely you are running a 64-bit system and the app is configured to build on a 32-bit system.
  • Jed SJed S Posts: 10
    It is getting some information about my computer. Here is the configure.log.

    ............................

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

    It was created by NetworkManager configure 0.8.2, which was
    generated by GNU Autoconf 2.66. Invocation command line was

    $ ./configure CC=/usr/lib/gcc

    ##
    ##
    ## Platform. ##
    ##
    ##

    hostname = asus-746886103
    uname -m = i686
    uname -r = 2.6.26-eeepc
    uname -s = Linux
    uname -v = #1 SMP Wed Nov 19 16:04:12 EST 2008

    /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/bin/X11


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

    configure:2516: checking for a BSD-compatible install
    configure:2584: result: /usr/bin/install -c
    configure:2595: checking whether build environment is sane
    configure:2645: result: yes
    configure:2786: checking for a thread-safe mkdir -p
    configure:2825: result: /bin/mkdir -p
    configure:2838: checking for gawk
    configure:2868: result: no
    configure:2838: checking for mawk
    configure:2854: found /usr/bin/mawk
    configure:2865: result: mawk
    configure:2876: checking whether make sets $(MAKE)
    configure:2898: result: yes
    configure:2973: checking how to create a ustar tar archive
    configure:2986: tar --version
    tar (GNU tar) 1.16
    Copyright (C) 2006 Free Software Foundation, Inc.
    This is free software. You may redistribute copies of it under the terms of
    the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
    There is NO WARRANTY, to the extent permitted by law.

    Written by John Gilmore and Jay Fenlason.
    configure:2989: $? = 0
    configure:3029: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
    configure:3032: $? = 0
    configure:3036: tar -xf - <conftest.tar
    configure:3039: $? = 0
    configure:3052: result: gnutar
    configure:3072: checking whether to enable maintainer-specific portions of Makefiles
    configure:3081: result: no
    configure:3112: checking for style of include used by make
    configure:3140: result: GNU
    configure:3210: checking for gcc
    configure:3237: result: /usr/lib/gcc
    configure:3466: checking for C compiler version
    configure:3475: /usr/lib/gcc --version >&5
    ./configure: line 3477: /usr/lib/gcc: is a directory
    configure:3486: $? = 126
    configure:3475: /usr/lib/gcc -v >&5
    ./configure: line 3477: /usr/lib/gcc: is a directory
    configure:3486: $? = 126
    configure:3475: /usr/lib/gcc -V >&5
    ./configure: line 3477: /usr/lib/gcc: is a directory
    configure:3486: $? = 126
    configure:3475: /usr/lib/gcc -qversion >&5
    ./configure: line 3477: /usr/lib/gcc: is a directory
    configure:3486: $? = 126
    configure:3506: checking whether the C compiler works
    configure:3528: /usr/lib/gcc conftest.c >&5
    ./configure: line 3530: /usr/lib/gcc: is a directory
    configure:3532: $? = 126
    configure:3570: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "NetworkManager"
    | #define PACKAGE_TARNAME "NetworkManager"
    | #define PACKAGE_VERSION "0.8.2"
    | #define PACKAGE_STRING "NetworkManager 0.8.2"
    | #define PACKAGE_BUGREPORT "[email protected]"
    | #define PACKAGE_URL ""
    | #define PACKAGE "NetworkManager"
    | #define VERSION "0.8.2"
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:3575: error: in `/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager':
    configure:3577: error: C compiler cannot create executables
    See `config.log' for more details

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

    ac_cv_env_CC_set=set
    ac_cv_env_CC_value=/usr/lib/gcc
    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_DBUS_CFLAGS_set=
    ac_cv_env_DBUS_CFLAGS_value=
    ac_cv_env_DBUS_LIBS_set=
    ac_cv_env_DBUS_LIBS_value=
    ac_cv_env_GIO_CFLAGS_set=
    ac_cv_env_GIO_CFLAGS_value=
    ac_cv_env_GIO_LIBS_set=
    ac_cv_env_GIO_LIBS_value=
    ac_cv_env_GLIB_CFLAGS_set=
    ac_cv_env_GLIB_CFLAGS_value=
    ac_cv_env_GLIB_LIBS_set=
    ac_cv_env_GLIB_LIBS_value=
    ac_cv_env_GMODULE_CFLAGS_set=
    ac_cv_env_GMODULE_CFLAGS_value=
    ac_cv_env_GMODULE_LIBS_set=
    ac_cv_env_GMODULE_LIBS_value=
    ac_cv_env_GNUTLS_CFLAGS_set=
    ac_cv_env_GNUTLS_CFLAGS_value=
    ac_cv_env_GNUTLS_LIBS_set=
    ac_cv_env_GNUTLS_LIBS_value=
    ac_cv_env_GUDEV_CFLAGS_set=
    ac_cv_env_GUDEV_CFLAGS_value=
    ac_cv_env_GUDEV_LIBS_set=
    ac_cv_env_GUDEV_LIBS_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBNL_CFLAGS_set=
    ac_cv_env_LIBNL_CFLAGS_value=
    ac_cv_env_LIBNL_LIBS_set=
    ac_cv_env_LIBNL_LIBS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_NSS_CFLAGS_set=
    ac_cv_env_NSS_CFLAGS_value=
    ac_cv_env_NSS_LIBS_set=
    ac_cv_env_NSS_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_POLKIT_CFLAGS_set=
    ac_cv_env_POLKIT_CFLAGS_value=
    ac_cv_env_POLKIT_LIBS_set=
    ac_cv_env_POLKIT_LIBS_value=
    ac_cv_env_UUID_CFLAGS_set=
    ac_cv_env_UUID_CFLAGS_value=
    ac_cv_env_UUID_LIBS_set=
    ac_cv_env_UUID_LIBS_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_ac_ct_CC=/usr/lib/gcc
    ac_cv_prog_make_make_set=yes
    am_cv_prog_tar_ustar=gnutar

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

    ACLOCAL='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run aclocal-1.11'
    ACLOCAL_AMFLAGS=''
    ALL_LINGUAS=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run tar'
    AM_BACKSLASH='\'
    AM_DEFAULT_VERBOSITY='1'
    AR=''
    AUTOCONF='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run autoconf'
    AUTOHEADER='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run autoheader'
    AUTOMAKE='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run automake-1.11'
    AWK='mawk'
    CATALOGS=''
    CATOBJEXT=''
    CC='/usr/lib/gcc'
    CCDEPMODE=''
    CFLAGS=''
    CPP=''
    CPPFLAGS=''
    CYGPATH_W='echo'
    DATADIRNAME=''
    DBUS_CFLAGS=''
    DBUS_LIBS=''
    DBUS_SYS_DIR=''
    DEFS=''
    DEPDIR='.deps'
    DHCLIENT_PATH=''
    DHCLIENT_VERSION=''
    DHCPCD_PATH=''
    DISABLE_DEPRECATED=''
    DSYMUTIL=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_GTK_DOC_FALSE=''
    ENABLE_GTK_DOC_TRUE=''
    EXEEXT=''
    FGREP=''
    GETTEXT_PACKAGE=''
    GIO_CFLAGS=''
    GIO_LIBS=''
    GLIB_CFLAGS=''
    GLIB_GENMARSHAL=''
    GLIB_LIBS=''
    GMODULE_CFLAGS=''
    GMODULE_LIBS=''
    GMOFILES=''
    GMSGFMT=''
    GNUTLS_CFLAGS=''
    GNUTLS_LIBS=''
    GREP=''
    GTKDOC_CHECK=''
    GTKDOC_MKPDF=''
    GTKDOC_REBASE=''
    GTK_DOC_BUILD_HTML_FALSE=''
    GTK_DOC_BUILD_HTML_TRUE=''
    GTK_DOC_BUILD_PDF_FALSE=''
    GTK_DOC_BUILD_PDF_TRUE=''
    GTK_DOC_USE_LIBTOOL_FALSE=''
    GTK_DOC_USE_LIBTOOL_TRUE=''
    GTK_DOC_USE_REBASE_FALSE=''
    GTK_DOC_USE_REBASE_TRUE=''
    GUDEV_CFLAGS=''
    GUDEV_LIBS=''
    HAVE_SYSTEMD_FALSE=''
    HAVE_SYSTEMD_TRUE=''
    HTML_DIR=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    INSTOBJEXT=''
    INTLLIBS=''
    INTLTOOL_CAVES_RULE=''
    INTLTOOL_DESKTOP_RULE=''
    INTLTOOL_DIRECTORY_RULE=''
    INTLTOOL_EXTRACT=''
    INTLTOOL_KBD_RULE=''
    INTLTOOL_KEYS_RULE=''
    INTLTOOL_MERGE=''
    INTLTOOL_OAF_RULE=''
    INTLTOOL_PERL=''
    INTLTOOL_POLICY_RULE=''
    INTLTOOL_PONG_RULE=''
    INTLTOOL_PROP_RULE=''
    INTLTOOL_SCHEMAS_RULE=''
    INTLTOOL_SERVER_RULE=''
    INTLTOOL_SERVICE_RULE=''
    INTLTOOL_SHEET_RULE=''
    INTLTOOL_SOUNDLIST_RULE=''
    INTLTOOL_THEME_RULE=''
    INTLTOOL_UI_RULE=''
    INTLTOOL_UPDATE=''
    INTLTOOL_XAM_RULE=''
    INTLTOOL_XML_NOMERGE_RULE=''
    INTLTOOL_XML_RULE=''
    IPTABLES_PATH=''
    KERNEL_FIRMWARE_DIR=''
    LD=''
    LDFLAGS=''
    LIBDL=''
    LIBGCRYPT_CFLAGS=''
    LIBGCRYPT_CONFIG=''
    LIBGCRYPT_LIBS=''
    LIBM=''
    LIBNL_CFLAGS=''
    LIBNL_LIBS=''
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIPO=''
    LN_S=''
    LTLIBOBJS=''
    MAINT='#'
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE='#'
    MAKEINFO='${SHELL} "/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/missing" --run makeinfo'
    MKDIR_P='/bin/mkdir -p'
    MKINSTALLDIRS=''
    MSGFMT=''
    MSGFMT_OPTS=''
    MSGMERGE=''
    NM=''
    NMEDIT=''
    NSS_CFLAGS=''
    NSS_LIBS=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='NetworkManager'
    PACKAGE_BUGREPORT='[email protected]'
    PACKAGE_NAME='NetworkManager'
    PACKAGE_STRING='NetworkManager 0.8.2'
    PACKAGE_TARNAME='NetworkManager'
    PACKAGE_URL=''
    PACKAGE_VERSION='0.8.2'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PKG_CONFIG_LIBDIR=''
    PKG_CONFIG_PATH=''
    POFILES=''
    POLKIT_CFLAGS=''
    POLKIT_LIBS=''
    POSUB=''
    PO_IN_DATADIR_FALSE=''
    PO_IN_DATADIR_TRUE=''
    PPPD_PLUGIN_DIR=''
    RANLIB=''
    RESOLVCONF_PATH=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRIP=''
    SYSTEM_CA_PATH=''
    TARGET_ARCH_FALSE=''
    TARGET_ARCH_TRUE=''
    TARGET_DEBIAN_FALSE=''
    TARGET_DEBIAN_TRUE=''
    TARGET_FRUGALWARE_FALSE=''
    TARGET_FRUGALWARE_TRUE=''
    TARGET_GENTOO_FALSE=''
    TARGET_GENTOO_TRUE=''
    TARGET_LINEXA_FALSE=''
    TARGET_LINEXA_TRUE=''
    TARGET_MANDRIVA_FALSE=''
    TARGET_MANDRIVA_TRUE=''
    TARGET_PALDO_FALSE=''
    TARGET_PALDO_TRUE=''
    TARGET_PARDUS_FALSE=''
    TARGET_PARDUS_TRUE=''
    TARGET_REDHAT_FALSE=''
    TARGET_REDHAT_TRUE=''
    TARGET_SLACKWARE_FALSE=''
    TARGET_SLACKWARE_TRUE=''
    TARGET_SUSE_FALSE=''
    TARGET_SUSE_TRUE=''
    UDEV_BASE_DIR=''
    USE_NLS=''
    UUID_CFLAGS=''
    UUID_LIBS=''
    VERSION='0.8.2'
    WITH_DOCS_FALSE=''
    WITH_DOCS_TRUE=''
    WITH_GNUTLS_FALSE=''
    WITH_GNUTLS_TRUE=''
    WITH_NSS_FALSE=''
    WITH_NSS_TRUE=''
    WITH_TESTS_FALSE=''
    WITH_TESTS_TRUE=''
    XGETTEXT=''
    ac_ct_CC='/usr/lib/gcc'
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__quote=''
    am__tar='tar --format=ustar -chf - "$$tardir"'
    am__untar='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=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} '\''/home/user/My Documents/DOWNLOADS/internetconnection/Network Manager/NetworkManager/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'
    systemdsystemunitdir=''
    target_alias=''

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

    /* confdefs.h */
    #define PACKAGE_NAME "NetworkManager"
    #define PACKAGE_TARNAME "NetworkManager"
    #define PACKAGE_VERSION "0.8.2"
    #define PACKAGE_STRING "NetworkManager 0.8.2"
    #define PACKAGE_BUGREPORT "[email protected]"
    #define PACKAGE_URL ""
    #define PACKAGE "NetworkManager"
    #define VERSION "0.8.2"

    configure: exit 77
  • mfillpotmfillpot Posts: 2,180
    Yes, it does appear that you are not passing the flags that are telling the application what architecture you are using.

    If you are versed in bash I recommend that you checkout the slackbuild script that the slackware community uses to build the application at http://slackbuilds.org/slackbuilds/13.1/network/NetworkManager/NetworkManager.SlackBuild to see what flags they use to build the same application.
Sign In or Register to comment.