Compiled program in C++ wouldn't run

Dear gurus,
I am using Sun Studio Express installed in Open Solaris for x86-chip as guest running from xVM with Windows Vista as host.
As a newbie learning to compile in Open Solaris environment, I wrote a naive test script
using gedit text editor as follows:
#include <iostream>
int main() {
using namespace std;
cout<<"Hello, world."
return 0;
and saved it as greeting.cc in the folder.
Compilation is okay, but when tried to execute, it fail to run.
Attached is a log of terminal output for your kind reference:
lin@OpenSolaris:~$ CC randnorm.cc
lin@OpenSolaris:~$ ls
a.out Desktop     Documents Download Public randnorm.cc randnorm.cc~
lin@OpenSolaris:/opt$ a
bash: a: command not found
lin@OpenSolaris:/opt$ a.exe
bash: a.exe: command not found
lin@OpenSolaris:/opt$ a.out
bash: a.out: command not found
I'd be very grateful if you could kindly advise me on this
Many thanks for your precious time and advice.
Best
Lin

I sounds like you might be new to Unix in general.
In Unix, there is no default file extension for executable files, nor is any file extension needed. To run a command, you need to type the name of the file. For example, you could create three different executable programs called "a", "a.exe", and "a.out", and all could be in the same directory. You would run one of them by typing the full file name.
In Unix, you have an "execution path", a list of directories that are automatically searched for commands. If you don't set the path in a login script, the path does not include ".", the current directory. So even though "a.out" was in the current directory ".", "." is not on your search path, so it was not found. You could run the program by typing "./a.out" (without the quotes).
By default, Open Solaris gives you the "bash" shell as your login shell. (Other shells are available, such as sh and csh.) The command
man bashwill give you a somewhat condensed set of instructions for using bash. More generally, "man command-name" will give you a more or less brief description of "command-name".
If you have a printer installed, you can run
man -t bashto print the bash manual.
I think your next step is to get an introductory Unix and/or bash book, such as the O'Reilly books, or possibly Unix for Dummies. (I'm not calling you a dummy :-), and I strongly dislike the "for Dummies" in the titles of this book series, but many people like them.)
Books about Linux will partially apply, but there are differences between Linux and Solaris that could prove confusing when you are starting out. I recommend not using a Linux reference for Solaris.

Similar Messages

  • [SOLVED] configure: error: cannot run C compiled programs

    I'm trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.
    makepkg messages:
    ==> Making package: lib32-libxkbcommon 0.5.0-1 (Mon May 11 00:17:05 EEST 2015)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving sources...
    -> Found libxkbcommon-0.5.0.tar.xz
    ==> Validating source files with sha256sums...
    libxkbcommon-0.5.0.tar.xz ... Passed
    ==> Extracting sources...
    -> Extracting libxkbcommon-0.5.0.tar.xz with bsdtar
    bsdtar: Failed to set default locale
    ==> Starting prepare()...
    ==> Removing existing $pkgdir/ directory...
    ==> Starting build()...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether to enable maintainer-specific portions of Makefiles... yes
    checking for style of include used by make... GNU
    checking for gcc... gcc -m32
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... configure: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ==> ERROR: A failure occurred in build().
    Aborting...
    makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
    'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
    'rsync::/usr/bin/rsync --no-motd -z %u %o'
    'scp::/usr/bin/scp -C %u %o')
    # Other common tools:
    # /usr/bin/snarf
    # /usr/bin/lftpget -c
    # /usr/bin/wget
    #-- The package required by makepkg to download VCS sources
    # Format: 'protocol::package'
    VCSCLIENTS=('bzr::bzr'
    'git::git'
    'hg::mercurial'
    'svn::subversion')
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Compiler and Linker Flags
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CPPFLAGS="-D_FORTIFY_SOURCE=2"
    CFLAGS="-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4"
    CXXFLAGS="${CFLAGS}"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
    #-- Make Flags: change this for DistCC/SMP systems
    MAKEFLAGS="-j5"
    #-- Debugging flags
    DEBUG_CFLAGS="-g -fvar-tracking-assignments"
    DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
    # BUILD ENVIRONMENT
    # Defaults: BUILDENV=(!distcc color !ccache check !sign)
    # A negated environment option will do the opposite of the comments below.
    #-- distcc: Use the Distributed C/C++/ObjC compiler
    #-- color: Colorize output messages
    #-- ccache: Use ccache to cache compilation
    #-- check: Run the check() function if present in the PKGBUILD
    #-- sign: Generate PGP signature file
    BUILDENV=(!distcc color !ccache check !sign)
    #-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
    #-- specify a space-delimited list of hosts running in the DistCC cluster.
    #DISTCC_HOSTS=""
    #-- Specify a directory for package building.
    #BUILDDIR=/tmp/makepkg
    # GLOBAL PACKAGE OPTIONS
    # These are default values for the options=() settings
    # Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    # A negated option will do the opposite of the comments below.
    #-- strip: Strip symbols from binaries/libraries
    #-- docs: Save doc directories specified by DOC_DIRS
    #-- libtool: Leave libtool (.la) files in packages
    #-- staticlibs: Leave static library (.a) files in packages
    #-- emptydirs: Leave empty directories in packages
    #-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
    #-- purge: Remove files specified by PURGE_TARGETS
    #-- upx: Compress binary executable files using UPX
    #-- debug: Add debugging flags as specified in DEBUG_* variables
    OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
    #-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
    INTEGRITY_CHECK=(md5)
    #-- Options to be used when stripping binaries. See `man strip' for details.
    STRIP_BINARIES="--strip-all"
    #-- Options to be used when stripping shared libraries. See `man strip' for details.
    STRIP_SHARED="--strip-unneeded"
    #-- Options to be used when stripping static libraries. See `man strip' for details.
    STRIP_STATIC="--strip-debug"
    #-- Manual (man and info) directories to compress (if zipman is specified)
    MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
    #-- Doc directories to remove (if !docs is specified)
    DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
    #-- Files to be removed from all packages (if purge is specified)
    PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
    # PACKAGE OUTPUT
    # Default: put built package and cached source in build directory
    #-- Destination: specify a fixed directory where all packages will be placed
    #PKGDEST=/home/packages
    #-- Source cache: specify a fixed directory where source files will be cached
    #SRCDEST=/home/sources
    #-- Source packages: specify a fixed directory where all src packages will be placed
    #SRCPKGDEST=/home/srcpackages
    #-- Log files: specify a fixed directory where all log files will be placed
    #LOGDEST=/home/makepkglogs
    #-- Packager: name/email of the person or organization building packages
    #PACKAGER="John Doe <[email protected]>"
    #-- Specify a key to use for package signing
    #GPGKEY=""
    # COMPRESSION DEFAULTS
    COMPRESSGZ=(gzip -c -f -n)
    COMPRESSBZ2=(bzip2 -c -f)
    COMPRESSXZ=(xz -c -z -)
    COMPRESSLRZ=(lrzip -q)
    COMPRESSLZO=(lzop -q)
    COMPRESSZ=(compress -c -f)
    # EXTENSION DEFAULTS
    # WARNING: Do NOT modify these variables unless you know what you are
    # doing.
    PKGEXT='.pkg.tar.xz'
    SRCEXT='.src.tar.gz'
    # vim: set ft=sh ts=2 sw=2 et:
    config.log:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    It was created by libxkbcommon configure 0.5.0, which was
    generated by GNU Autoconf 2.69. Invocation command line was
    $ ./configure --prefix=/usr --libdir=/usr/lib32 --disable-docs --disable-static
    ## Platform. ##
    hostname = Arch
    uname -m = x86_64
    uname -r = 4.0.1-1-ARCH
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015
    /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/bin
    PATH: /usr/lib/jvm/default/bin
    PATH: /usr/bin/site_perl
    PATH: /usr/bin/vendor_perl
    PATH: /usr/bin/core_perl
    ## Core tests. ##
    configure:2424: checking for a BSD-compatible install
    configure:2492: result: /usr/bin/install -c
    configure:2503: checking whether build environment is sane
    configure:2558: result: yes
    configure:2709: checking for a thread-safe mkdir -p
    configure:2748: result: /usr/bin/mkdir -p
    configure:2755: checking for gawk
    configure:2771: found /usr/bin/gawk
    configure:2782: result: gawk
    configure:2793: checking whether make sets $(MAKE)
    configure:2815: result: yes
    configure:2844: checking whether make supports nested variables
    configure:2861: result: yes
    configure:2987: checking whether to enable maintainer-specific portions of Makefiles
    configure:2996: result: yes
    configure:3023: checking for style of include used by make
    configure:3051: result: GNU
    configure:3122: checking for gcc
    configure:3149: result: gcc -m32
    configure:3378: checking for C compiler version
    configure:3387: gcc -m32 --version >&5
    gcc (GCC) 5.1.0
    Copyright (C) 2015 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    configure:3398: $? = 0
    configure:3387: gcc -m32 -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/gcc-multilib/src/gcc-5-20150505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
    Thread model: posix
    gcc version 5.1.0 (GCC)
    configure:3398: $? = 0
    configure:3387: gcc -m32 -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3387: gcc -m32 -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:3398: $? = 1
    configure:3418: checking whether the C compiler works
    configure:3440: gcc -m32 -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3444: $? = 0
    configure:3492: result: yes
    configure:3495: checking for C compiler default output file name
    configure:3497: result: a.out
    configure:3503: checking for suffix of executables
    configure:3510: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    configure:3514: $? = 0
    configure:3536: result:
    configure:3558: checking whether we are cross compiling
    configure:3566: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
    In file included from /usr/include/stdio.h:27:0,
    from conftest.c:11:
    /usr/include/features.h:365:25: fatal error: sys/cdefs.h: No such file or directory
    compilation terminated.
    configure:3570: $? = 1
    configure:3577: ./conftest
    ./configure: line 3579: ./conftest: No such file or directory
    configure:3581: $? = 127
    configure:3588: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
    configure:3590: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details
    ## Cache variables. ##
    ac_cv_env_CC_set=set
    ac_cv_env_CC_value='gcc -m32'
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_DOT_set=
    ac_cv_env_DOT_value=
    ac_cv_env_DOXYGEN_set=
    ac_cv_env_DOXYGEN_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_PKG_CONFIG_LIBDIR_set=
    ac_cv_env_PKG_CONFIG_LIBDIR_value=
    ac_cv_env_PKG_CONFIG_PATH_set=set
    ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib32/pkgconfig
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_XCB_XKB_CFLAGS_set=
    ac_cv_env_XCB_XKB_CFLAGS_value=
    ac_cv_env_XCB_XKB_LIBS_set=
    ac_cv_env_XCB_XKB_LIBS_value=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_set=
    ac_cv_env_XORG_MALLOC_DEBUG_ENV_value=
    ac_cv_env_YACC_set=
    ac_cv_env_YACC_value=
    ac_cv_env_YFLAGS_set=
    ac_cv_env_YFLAGS_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=/usr/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_ac_ct_CC='gcc -m32'
    ac_cv_prog_make_make_set=yes
    am_cv_make_support_nested_variables=yes
    ## Output variables. ##
    ACLOCAL='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing aclocal-1.14'
    ADMIN_MAN_DIR=''
    ADMIN_MAN_SUFFIX=''
    AMDEPBACKSLASH='\'
    AMDEP_FALSE='#'
    AMDEP_TRUE=''
    AMTAR='$${TAR-tar}'
    AM_BACKSLASH='\'
    AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
    AM_DEFAULT_VERBOSITY='1'
    AM_V='$(V)'
    APP_MAN_DIR=''
    APP_MAN_SUFFIX=''
    AR=''
    AUTOCONF='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoconf'
    AUTOHEADER='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoheader'
    AUTOMAKE='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing automake-1.14'
    AWK='gawk'
    BASE_CFLAGS=''
    BUILD_LINUX_TESTS_FALSE=''
    BUILD_LINUX_TESTS_TRUE=''
    CC='gcc -m32'
    CCDEPMODE=''
    CFLAGS='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
    CHANGELOG_CMD=''
    CPP=''
    CPPFLAGS='-D_FORTIFY_SOURCE=2'
    CWARNFLAGS=''
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR='.deps'
    DLLTOOL=''
    DOT=''
    DOXYGEN=''
    DRIVER_MAN_DIR=''
    DRIVER_MAN_SUFFIX=''
    DSYMUTIL=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_DOCS_FALSE=''
    ENABLE_DOCS_TRUE=''
    ENABLE_X11_FALSE=''
    ENABLE_X11_TRUE=''
    EXEEXT=''
    FGREP=''
    FILE_MAN_DIR=''
    FILE_MAN_SUFFIX=''
    GREP=''
    HAVE_DOT=''
    HAVE_DOT_FALSE=''
    HAVE_DOT_TRUE=''
    HAVE_DOXYGEN_FALSE=''
    HAVE_DOXYGEN_TRUE=''
    HAVE_NO_UNDEFINED_FALSE=''
    HAVE_NO_UNDEFINED_TRUE=''
    INSTALL_CMD=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    LD=''
    LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIB_MAN_DIR=''
    LIB_MAN_SUFFIX=''
    LIPO=''
    LN_S=''
    LTLIBOBJS=''
    MAINT=''
    MAINTAINER_MODE_FALSE='#'
    MAINTAINER_MODE_TRUE=''
    MAKEINFO='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing makeinfo'
    MANIFEST_TOOL=''
    MAN_SUBSTS=''
    MISC_MAN_DIR=''
    MISC_MAN_SUFFIX=''
    MKDIR_P='/usr/bin/mkdir -p'
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='libxkbcommon'
    PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon'
    PACKAGE_NAME='libxkbcommon'
    PACKAGE_STRING='libxkbcommon 0.5.0'
    PACKAGE_TARNAME='libxkbcommon'
    PACKAGE_URL='http://xkbcommon.org'
    PACKAGE_VERSION='0.5.0'
    PATH_SEPARATOR=':'
    PKG_CONFIG=''
    PKG_CONFIG_LIBDIR=''
    PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
    RANLIB=''
    RT_LIBS=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/sh'
    STRICT_CFLAGS=''
    STRIP=''
    VERSION='0.5.0'
    XCB_XKB_CFLAGS=''
    XCB_XKB_LIBS=''
    XKBCONFIGROOT=''
    XLOCALEDIR=''
    XORG_MALLOC_DEBUG_ENV=''
    XORG_MAN_PAGE=''
    YACC=''
    YACC_INST=''
    YFLAGS=''
    ac_ct_AR=''
    ac_ct_CC='gcc -m32'
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__include='include'
    am__isrc=''
    am__leading_dot='.'
    am__nodep='_no'
    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=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/install-sh'
    libdir='/usr/lib32'
    libexecdir='${exec_prefix}/libexec'
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mkdir_p='$(MKDIR_P)'
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/usr'
    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 "libxkbcommon"
    #define PACKAGE_TARNAME "libxkbcommon"
    #define PACKAGE_VERSION "0.5.0"
    #define PACKAGE_STRING "libxkbcommon 0.5.0"
    #define PACKAGE_BUGREPORT "[url]https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon[/url]"
    #define PACKAGE_URL "[url]http://xkbcommon.org[/url]"
    #define PACKAGE "libxkbcommon"
    #define VERSION "0.5.0"
    configure: exit 1
    other info:
    core/pacman 4.2.1-1
    multilib/gcc-multilib 4.9.2-4 (multilib-devel) [installed]
        The GNU Compiler Collection - C and C++ frontends for multilib
    multilib/lib32-fakeroot 1.20.2-1 (multilib-devel) [installed]
        Tool for simulating superuser privileges (32-bit)
    multilib/lib32-libltdl 2.4.5-1 (multilib-devel) [installed]
        A generic library support script (32-bit)
    Last edited by tsester (2015-05-10 22:10:28)

    tsester wrote:P.S.: I recently transfered the linux system between failing disks
    In that case you should probably check that no other packages are missing files with
    pacman -Qkk 2>&1 | grep "No such file or directory"
    Any packages that report that they're missing files, you should reinstall.

  • Configure: error: cannot run C compiled programs.

    Hi,
    I am new to Solaris. I have installed Solaris 10 and compiled packages without any error.
    I have tried to compile Wireshark 1.7.1 and it was exist indicating '/usr/include/sys/feature_tests.h no such file or directory'.
    So I have download feature_tests.h file and uploaded it to the relevant location and run ./configure again.
    Now I am not able to compile any package and it indicate error
    'configure: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details'
    I have attached portion of the config.log
    configure:3739: checking whether the C compiler works
    configure:3761: gcc conftest.c >&5
    configure:3765: $? = 0
    configure:3813: result: yes
    configure:3816: checking for C compiler default output file name
    configure:3818: result: a.out
    configure:3824: checking for suffix of executables
    configure:3831: gcc -o conftest conftest.c >&5
    configure:3835: $? = 0
    configure:3857: result:
    configure:3879: checking whether we are cross compiling
    configure:3887: gcc -o conftest conftest.c >&5
    In file included from conftest.c:11:
    /usr/include/stdio.h:21:31: sys/feature_tests.h: No such file or directory
    In file included from /usr/include/stdio.h:66,
    from conftest.c:11:
    /usr/include/iso/stdio_iso.h:90: error: syntax error before "fpos_t"
    /usr/include/iso/stdio_iso.h:208: error: syntax error before "fpos_t"
    /usr/include/iso/stdio_iso.h:210: error: syntax error before '*' token
    In file included from /usr/include/stdio.h:135,
    from conftest.c:11:
    /usr/include/iso/stdio_c99.h:54: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdio_c99.h:54: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdio_c99.h:56: error: redefinition of parameter '_RESTRICT_KYWD'
    /usr/include/iso/stdio_c99.h:56: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdio_c99.h:68: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdio_c99.h:68: error: previous definition of '_RESTRICT_KYWD' was here
    /usr/include/iso/stdio_c99.h:70: error: conflicting types for '_RESTRICT_KYWD'
    /usr/include/iso/stdio_c99.h:70: error: previous definition of '_RESTRICT_KYWD' was here
    configure:3891: $? = 1
    configure:3898: ./conftest
    ./configure: line 3900: ./conftest: No such file or directory
    configure:3902: $? = 127
    configure:3909: error: in `/wireshark-1.6.7':
    configure:3911: error: cannot run C compiled programs.
    If you meant to cross compile, use `--host'.
    See `config.log' for more details

    934802 wrote:
    Hi,
    I am new to Solaris. I have installed Solaris 10 and compiled packages without any error.
    I have tried to compile Wireshark 1.7.1 and it was exist indicating '/usr/include/sys/feature_tests.h no such file or directory'.
    So I have download feature_tests.h file and uploaded it to the relevant location and run ./configure again.
    Now I am not able to compile any package and it indicate error Where did you get this file?

  • My Compiled Program Won't Run

    I am relatively new to Java. I am having a problem with a very simple program I decided would be my first. I am able to compile it but it will not run. Here is the code.
    //A Very Simple Example
    class ExampleProgram {
    public static void main(String args[]){
    System.out.println("I'm a Simple Program");
    It will compile so that I may recieve my .class file but when I use DOS to open it. DOS writes "Exception in thread "main" java.lang.NoClassDefFoundError: Example Program."
    I'm sure this is a runtime error but besides that I have not found anything that will help me fix the problem. I would be greatful for any help.

    Is that the exact error?
    Did you run it as
    java Example Program
    (that's what it looks like)
    try:
    java ExampleProgram
    ~David
    If not, it relates to the 'classpath' issue, well documented, and asked at least 1000 times prior in this forum (see the search engine on the top right corner?)

  • Can I run gcc compiled programs in the terminal?

    I compiled a simple C program in the terminal using gcc 4.0 from the Xcode 2.2 distribution. I used gcc a.c at the command line and the compiler produced a.out. When I type a.out at the command line, I get the message
    tcsh: a.out: Command not found.
    Am I missing a step in the comilation phase? Is it possible to run gcc compiled programs in the terminal? I get the same results in the bash shell and when using X11.
    eMac G4   Mac OS X (10.4.6)  

    ./a.out is correct. Your current directory in not in your $PATH. You could add "." to the PATH, but that is considered a security compromise, because an unexpected command could be introduced either maliciously or inadvertently. (I have seen this happen.)

  • My compiled program crashes after first run (LabVIEW 2009)

    I have a compiled program created with LabVIEW 2009 that on the first run after the computer is re-booted will work fine but after shutting down the program it will not run properly. 
    The program uses a compiled launcher to dynamically activate a set of VI's containing Queue Driven State Machines (QDSM).  On subsequent program starts the launcher module comes up fine and its progress bar shows that it is launching each of the VI's.  Once the launcher is complete it removes itself from memory leaving the dynamically launched VI's running.  The subsequent launches which fail the main user interface VI pops up barely long enough for the observer to see (if at all) then shuts down.  The program is then gone from memory as far as I can tell.  There are no processes in memory or anything.
    Additionally, the when I try to run the installed version of the exe on a computer that has the 2009 development environment installed I get this behavior consistently with a successful run even once.
    In both cases my program does not throw any errors (which are logged) nor does the runtime engine generate any that I can see.  Also, when I run my program in the development environment the program does not behave this way.  It has no problems at all.
    I have used this style of architecture before in LV8.6 with out any problems.  Can anyone suggest some possible solutions or even some debugging tips?  I have never had a problem that I could not duplicate in the development environment so I am unsure how begin attacking my issue.
    Thanks for any help.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!
    Solved!
    Go to Solution.

    I have solved the problem I think (at least as far as testing to this point has revealed).   After I added in the ability to log the states passed to the QDSM's, I was able to determine that the program was "crashing" after I dynamically closed the front panel of the launcher.  My program was designed to close the front panel of the launcher then pop-up the front panel of the main UI.   My EXE is built on to contain the launcher with my other QDSM files being maintained externally in specific directories.  What appeared to be happening is that when the launcher closed its front panel and before the UI opened up the run-time engine would decide since there were no windows open it would close itself down.  This is my supposition about what may be happening any way.  I modified my code to changed the launcher window to hidden and delay for 1/2 a second to give the main UI a chance to start fully running.  This fixed the problem, or at least worked around it.  If someone out there can explain to me exactly what is happening I sure would appreciate it.
    Thanks for all the help those of you who responded.  Your advice was very beneficial and certainly led me to a resolution faster.
    Jason
    Wire Warrior
    Behold the power of LabVIEW as my army of Roomba minions streaks across the floor!

  • LV 8 problem with New Report.vi in compiled program

    I'm a novice LV programmer trying to finish my first project.  The project is the automation of an air flow stand using field point for acquisition/control.  Have the code written and everything seems to work fine until I compile.  Specifically, I get an error when I attempt to open an Excel template (XLT) using the New Report.vi included in the report generation add on.  When the compiled executable run I get a message with the header "Error 7 occured at Open VI reference in New Report vi>report2.vi>auto air flow testing.vi .   And then in the body of the message is says:
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on Linux.
    NI-488:  Non-existent board.
    VI Path: C:\builds\auto air flow\My Application\auto air flow 1a.exe\Excel_Open.vi
    Built Application or Shared Library (DLL): Make sure all dynamically loaded VIs were properly included in the build specification for the application or shared libr
    The input to the New Report.vi template connector is C:\Air Flow Data Files\templates\psc.xlt.  Again this works in design so I believe the formatting is correct and the file does exist.
    Why would this work in design environment but not the compiled program?  I recompiled several times and even tried reinstalling the report generation tool kit. Any help or pointers would be greatly appreciated. I will be happy to supply more info if necessary.   thanks. 

    Okay, I found the solution by doing a search here on 'Error 7".  My thanks to those who have posted the solution in the past.  Regards

  • Bought adobe acrobat X standard. downloaded. Wouldn't run without application manager. downloaded application manager. Came up with error and still can't use x standard. What do i do now?

    Bought adobe acrobat X standard. Downloaded. wouldn't run without application manager. Downloaded application manager. came up with an error. Still can't use x standard program. What do I do now?

    Where did you purchase Acrobat X, it is discontinued?

  • My main program no longer compiles/program terminates.

    My main program (8.6.1 version) will no longer compile and provide the error listing.  The entire program just ends out of Labview completely.  First time it has occurred at our location in years of working with Labview.  I can't tell if it has something to do with the new laptop the program is hosted on or my code.  Any suggestions or solutions would be appreciated.
    Nick Salemi
    Teledyne Energy Systems, Inc.
    [email protected]
    410-891-2225

    Thanks altenback.
    I define compiling as clicking the blackened out run arrow and waiting for the error listing to identify coding errors.
    Problem example:  I'll remove a single wire on the block diagram.  I select the blackened arrow and then the Error List window pops up
    without any errors listed inside.  At the same time, layered over the Error List window I get the "famous"
    "Labview 8.6 Development System" window indicating a problem has been encountered and the program must close - sorry etc."
    The "Send Error Report" and "Dont Send Error Report" buttons are shown. It doesn't matter which one I choose; the program exits out of my
    program and drags Labview 8.6 with it so I'm back at Bill Gates big blue screen (I haven't put up any nice wallpaper yet).
    This is repeatable - I've done it about 6 times in a row on the "newer" laptop (bought ~2009; WinXP Prof 2002 service pack 3, 3.5 GB RAM ) and just repeated it on the 2 older laptops (Lenovos; junk, bought ~2006; WinXP Prof 2002 service pack 3, 504 MB and 1 GB RAM).
    My main program is       ~ 1.5 Mb in size and has 126 files under it.  Its not being run as a project. Dah!  May be this has something to do with it; never did before, I'm not sure.  My code communicates to 3 pieces of hardware via Agilent's USB/GPIB cable (82357A).  Those 3 pieces are an Agilent 34970A data acq system, an Agilent 6060B electronic load, and a Sorenson power supply.
    Strange thing is the program runs fine at my desk computer (WinXP Prof 2002 service pack 3, 504 MB RAM) - IT department maintained.
    It's something in the laptops, because they all worked, then during development they stopped.  Only thing I can point a finger at is the program
    kept growing in size over the last year.  A lot of information but I can't come up with a solution.
    Any ideas?
    Nick Salemi
    Teledyne Energy Systems, Inc.
    [email protected]
    410-891-2225

  • Does compiling the kernel makes the system run significantly faster?

    It used to be when you compiled your kernel (at least ten years ago), you would get a significant speed boost. However, with the speed of machine nowadays, I wonder how much, if any. Does compiling the kernel have a significant increase in daily performance or otherwise? If so, what portion of the system does it makes faster than before? In short, Is it worth it? I appreciate any comments.

    lilsirecho wrote:
    Broch:
    The title of this thread doesn't limit responses to just redoing the kernel since it says "system run significantly faster".
    The kernel is not the system...the system runs from HDD and ram. 
    To speed up that process, run everything possible in ram for system speed up.
    I think for 500 packages loading from scratch to desktop in 45 seconds is fast.  And running after that in ram is super fast system speed "significantly faster".
    The speed I quote is possible now.  With UDMA capability in the kernel, at least half of the install time is probable.
    And that is for over 500 packages into KDE no less!
    Using flash in IDE removes the latent search from the system and therefore must be faster.
    Changing the kernel will indeed speed up the system...but only if it includes UDMA for the flash drives already available but not configured with the present kernels. 
    Using flash drives for ide cache repos will allow faster boot time, and reduce the load on the system.  You don't normally run many,many programs at once so put them in cache with a script to permit fast loading .
    That is "system running significantly faster" and all in ram, the fastest in the computer.
    no
    Does compiling the kernel makes the system run significantly faster?
    compiling kernel, not whatever
    I did not suspect that this requires explanation?
    but if you really want the noise, let's leave "faster?"
    and answer is: yes/no
    whatever that means.
    or you are joking
    anyway seems that results may vary.
    Last edited by broch (2008-02-06 04:32:01)

  • Windows Vista Home ( with SP2) constantly reporting that Safari 5.1.2 has crashed ( usual Windows prompt to close program) yet Safari is still running although loading pages slowly. Any one seen this recently ( note no recent install or changes to Windows

    Windows Vista Home ( with SP2) constantly reporting that Safari 5.1.2 has crashed ( usual Windows prompt to close program) yet Safari is still running although loading pages slowly. Any one seen this recently ( note no recent install or changes to Windows

    Windows reports that Safari stopped working . Windows Task Manager shows webkit2webprocess.exe  process still running even after I respond to Windows prompt and close Safari ( Safari continues running after this action )

  • Trigger a program immediately after the Payment Run F110

    Hi All,
    How to trigger a program immediately after the Payment Run F110.
    Thanks.

    Hi,
    In general payment media programs are executed immediately after the payment run.
    You can execute payment media programs using transaction code SA38 or you can enter appropriate variants for payment media programs in printout/date medium tab while executing payment run in F110 so that they are run automatically along with payment run.
    Thanks!
    Raju
    Edited by: M V Narayana Raju on Sep 18, 2010 2:40 AM

  • Storing integers in a compiled program

    I would am wriitng a program and I would like to generate a unique number for each time a users uses the compiled program, is it possible to store previously incremented numbers i.e. the last person who used this program got a print out number of 5. The next person to use this program would then get the number 6 etc etc? At the moment I have only been made familiar to coding in Java in a sort of runtime environment only.
    An example of my thinking could be like so:
    private int mynumber=1;
    I woould then like to be able to set a new number most probably by creating a set method like so:
    public int setMyNumber(int mynumber){
    mynewnumber = mynumber+1;
    return mynewnumber;
    ...... then in my main method I would like to return this new number. Please note this may not actually work but just giving you an idea of my thinking.
    : )

    Kayaman wrote:
    cyber_frog wrote:
    Hi EJP,
    Not sure what you mean by a preference? Do you have any info?See the Preferences class.Additional > [url http://download.oracle.com/javase/6/docs/api/]API Doco
    Additional > [url http://download.oracle.com/javase/1.4.2/docs/guide/lang/preferences.html]Tutorial 

  • Compile in 1.5 JVM and run in 1.4 JVM, work?

    1 - If i have a class that only uses generic and other features that are only useful for compile-time, is it possible to run compiled classes in 1.5 JVM in 1.4 JVM?
    2 - If i'm right, the JVM 1.5 features that are useful for compile-time, are removed in the classes. For instance, the generic types that we use in java classes disappear in the classes files. Is this true?
    Thanks,

    2 - If i'm right, the JVM 1.5 features that are
    useful for compile-time, are removed in the classes.
    For instance, the generic types that we use in java
    classes disappear in the classes files. Is this
    true?Not entirely.
    If you do List<String> list = new ArrayList<String>();, then the <String> part is not kept. It's just a List.
    But in the definition of the List interface, ArrayList class, etc., the fact that they take type parameters, and where, is kept. It has to be. How else could you even do List<String> in the first place?

  • My MacBook wouldn't run

    Hi,
    Since yesterday this problem appear suddenly after I decide to pull off the battery of my MacBook when it run.
    ...why I do this ? I always turn off my MacBook "normaly", but in this case, I was surprise by the "automatic run" of the laptop, without I activate any command in the battery menu !!! Plus, my MacBook wouldn't turn off, the keyboards did'nt respond; I just can use the trackpad to use the mouse and try to stop it !
    That's why I do this, friends.
    After, when I replace the battery the MacBook wouldn't run; I check the charge of the battery, 3 of 5 leds are lit.
    Try to reset SMC, doesn't change anything.
    When I plugg the battery charger, there's no light, and it doesn't change when I pull off the battery.
    So, I need your help to go further and restart my MacBook
    It's an "old" MacBook Intel, with OS X 10.5.8 (waiting for Snow Leopard delivery), 2 Go ram, 130 Mo HD...and it's my "music producer"
    Thxs

    Why not plug in the power?

Maybe you are looking for

  • Reports for Itemwise ageing and Stock with opening and closing

    Dear All, Is there any default reports in SAP for Item wise ageing and the stock status with opening stock,In and Out stock and closing stock for a given period. Regards, Shyam

  • How to create B/W PDF from MS Office Documents

    Hi, I am producing PDF documents from within Word 2003 using Acrobat X. The Word source contains some color, but I would like to produce a Black and White PDF. When using Acrobat X as a printer driver, I have to option to set Black and White output,

  • Word 2008 for Mac: Hyperlinks

    I am using Word 2008 for the MAC.  I would prefer to use pages but pages cannot save active hyperlinks as a pdf file.  at least I do not know how to do that. I am creating a large document for a genealogical history of many people.  Each person has t

  • Deployment (Redistrubution) CR2008 - bloated (large) files and what's the best practice

    Post Author: basit CA Forum: Deployment I am a rookie to CR ; and started deployment(CRXII) with my POS program written in .Net VB 2005  and the msi was really large (85mb) ; I bought the latest version (CR2008) after reading that it's much smaller.

  • Audigy SE in Vista 32bit. Time to repla

    I have an Audigy SE using the latest Beta drivers from the CL site, running on Vista Ultimate 32bit. Sound is choppy, with no microphone. Should i expect a working driver in the future from CL?Any recommendations on a fully working alternati've card?