Locale-gen command not found

Hi everyone
I just completed a new installation of Arch on my netbook, everything was working fine but there is a problem I can not solve.
I managed to set everything as I wanted and put the language of my XFCE and Firefox in Spanish, but then (I do not know exactly when) all programs returned to English.
I already check the rc.conf configuration and locale.gen and everything is set for Spanish, but when I try "sudo locale-gen" I recive a message like this: "sudo: locale-gen: command not found"
I also have problems with the keyboard, I configured xorg and rc.conf to use spanish keymap but it didn't work
Any ideas?

TigTex wrote:I made one arch install that has this problem... locale-gen doesnt work (for example) but it's full path works. How do I re-set the PATH variable?
All the problems I had with the PATH, keyboard and using other language than english had solved when I stop using autostart X in inittab , if I login to the terminal and start X myself, then everything works fine.
I am still looking for a way to start XFCE at boot without having to enter my username or password and not having the problems I told (CDM looks like the better way )
Last edited by Andyvec (2010-11-09 17:58:28)

Similar Messages

  • [solved]yaourt local database save - command not found

    i tried following this link to save yaourt packages to a local folder, but i get an error
    [root@myhost yaourt]# yaourt -Syu --devel --aur
    /etc/yaourtrc: line 49: ExportToLocalRepository: command not found
    comments at this page with similar errors doesnt offer any solution.
    what am i missing here?
    Last edited by hadrons123 (2011-11-19 17:07:15)

    1.first thing i just added the line
    ExportToLocalRepository /var/cache/pacman/pkg-local
    to the bottom of the yaourtrc file as per the wiki and ended up with the error.
    /etc/yaourtrc: line 49: ExportToLocalRepository: command not found
    2.after falconindy's idea i added #
    #ExportToLocalRepository /var/cache/pacman/pkg-local
    but now i dont see the error but then package is not getting saved in the pkg-local folder.
    3.karol i tried your step,but still the packages are not saved in the pkg-local folder.
    this is yaourtrc file after the edits but still packages are not saved....
    # yaourtrc - Configuration for yaourt
    # See yaourtrc(5) for more information
    # ABS_REPO list repositories available on archlinux rsync server
    ABS_REPO=(testing core extra community-testing community gnome-unstable kde-unstable)
    # General
    #AUTOSAVEBACKUPFILE=0
    #DEVELBUILDDIR="/var/abs/local/yaourtbuild"
    #DEVEL=0
    #EDITOR="$EDITOR"
    #FORCEENGLISH=0
    #FORCE=0
    #TMPDIR="/tmp"
    #SUDONOVERIF=0 # Avoid multiple sudo checks when timestamp_timeout=0
    # AUR
    #AURCOMMENT=5
    #AURDEVELONLY=0
    #AURSEARCH=1
    #AURUPGRADE=0
    #AURVOTE=1
    # Build
    #EXPORT=0 # Export builded package
    #EXPORTSRC=0 # Need EXPORT=1 to be used
    #EXPORTDIR="" # If empty, use makepkg's connfiguration (see makepkg.conf)
    #EXPORT=0 # Export to 1: EXPORTDIR or PKGDEST
    # 2: pacman cache (as root)
    #EXPORTSRC=0 # Need EXPORT>0 to be used
    #EXPORTDIR="" # If empty, use makepkg's connfiguration (see makepkg.conf)
    # Prompt
    #NOCONFIRM=0
    #UP_NOCONFIRM=0 # No prompt while build upgrades (including -Sbu)
    #BUILD_NOCONFIRM=0 # Only prompt for editing files
    #EDITFILES=1
    #NOENTER=1
    # Output
    #USECOLOR=1
    #DETAILUPGRADE=1
    #SHOWORPHANS=1
    #TERMINALTITLE=1
    # Command
    #PACMAN="pacman"
    #DIFFEDITCMD="vimdiff"
    #ExportToLocalRepository /var/cache/pacman/pkg-local
    thanks for the replies though!

  • [SOLVED] 'sh: nano: command not found' on installation in arch-chroot

    Hello,
    I'm trying to install Arch Linux on a new laptop with a UEFI motherboard, however while following the beginners' guide on the step which requires you to arch-chroot into the /mnt base system to modify the locale.gen file using nano, I receive the following error:
    'sh: nano: command not found'
    I have mounted the partitions, installed the base system and have tried searching online for a solution but nothing seems to work. Also, nano works while outside of arch-root so I believe it is installed on my system.
    I'm almost completely out of ideas on how to fix this, so any help or a point in the right direction would be greatly appreciated.
    - Thanks.
    Last edited by tyor (2013-01-20 12:01:54)

    I had the same problem during my first attempts to install Arch. When you use the command as stated:
    # pacstrap -i /mnt base base-devel
    it seems not all packages were downloaded/installed. Now I know it was my own fault by not selecting the packages properly.
    In the beginnersguide right above the pacstrap command is stated:
    The -i switch can be omitted if you wish to install every package from the base and base-devel groups without prompting.
    So I did, and installed without a problem

  • Command not found error while executing a shell script

    Hello,
    I am a newbie to linux.I am attaching the code which gives me following errors..
    error list:
    1. no such file or directory enviornemnt
    2. command not found
    3. ambiguous redirectline
    Script
    cd $HOME/wkdir
    rm /tmp/*.log
    # source environment
    . ./env
    # Run the install script to setup the database
    # Configure SH account
    sqlplus "/ as sysdba" <<! > /tmp/perflab_install.log 2>&1
    grant connect, resource, dba to SH;
    alter user sh account unlock;
    # create the fetch_n_rows procedure
    sqlplus "$PERFLAB_USER" <<! >> /tmp/perflab_install.log 2>&1
    drop index sales_time_bix;
    drop index sales_time_idx;
    create index sales_time_idx on sales(time_id) compute statistics;
    -- fetch_n_rows: fetches 'n' rows from the specified statement --
    CREATE OR REPLACE PROCEDURE fetch_n_rows(
    stmt VARCHAR,
    name VARCHAR,
    nexec NUMBER := 1,
    nrows NUMBER := 0,
    debug BOOLEAN := FALSE)
    IS
    -- Local variables
    curs INTEGER := null;
    rc INTEGER;
    nexec_it INTEGER := 0;
    nrows_it INTEGER;
    BEGIN
    dbms_application_info.set_module('DEMO', name);
    WHILE (nexec_it < nexec)
    LOOP
    curs := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(curs, stmt, DBMS_SQL.NATIVE);
    rc := DBMS_SQL.EXECUTE(curs);
    nrows_it := 0;
    LOOP
    IF (dbms_sql.fetch_rows(curs) <= 0 OR (nrows <> 0 AND nrows_it = nrows
    THEN
    EXIT;
    ELSE IF (debug = TRUE)
    THEN
    DBMS_OUTPUT.PUT_LINE(nrows_it);
    END IF;
    END IF;
    nrows_it := nrows_it + 1;
    END LOOP;
    DBMS_SQL.CLOSE_CURSOR(curs);
    nexec_it := nexec_it + 1;
    END LOOP;
    dbms_application_info.set_module(null, null);
    END fetch_n_rows;
    show errors
    # Start the workload
    . ./start_workload.sh > /tmp/setup_perflab.log 2>&1
    # Wait two minutes for workload to get going
    sleep 120
    # Modify snapshot interval
    sqlplus -s /NOLOG <<EOF >> /tmp/setup_perflab.log 2>&1
    connect / as sysdba
    set head on
    set feedback on;
    set pagesize 40
    rem -- event to allow setting very short Flushing interval
    alter session set events '13508 trace name context forever, level 1';
    rem -- change INTERVAL setting to 2 minutes
    rem -- change RETENTION setting to 6 hours (total of 180 snapshots)
    execute dbms_workload_repository.modify_snapshot_settings(interval => 2,-
    retention => 360);
    EOF
    Note : start_workload.sh is also in the same directory..
    Any help would be greatly appreciated.

    Please put your script between "code" format delimiters.
    http://wiki.oracle.com/page/Oracle+Discussion+Forums+FAQ
    You can add the line "set -x" at the beginning of your script to see at which line it fails? I suspect the . ./env line.

  • Ldconfig: command not found

    I just did a pacman -Syu and something went terribly wrong.
    Whenever i try to install a new program i get something like this:
    $ pacman -S glibc
    warning: glibc-2.10.1-3 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): glibc-2.10.1-3
    Total Download Size: 0.00 MB
    Total Installed Size: 31.47 MB
    Proceed with installation? [Y/n]
    checking package integrity...
    (1/1) checking for file conflicts [##############################] 100%
    (1/1) upgrading glibc [##############################] 100%
    /tmp/alpm_ZLRuBH/.INSTALL: line 39: ldconfig: command not found
    /tmp/alpm_ZLRuBH/.INSTALL: line 40: init: command not found
    Generating locales...
    en_US.UTF-8... done
    en_US.ISO-8859-1... done
    Generation complete.
    sh: ldconfig: command not found
    error: command failed to execute correctly
    Checking the integrity of the local database in /var/lib/pacman/
    any ideas?

    Have all the users with GNOME started a root's Terminal window???
    I've noticed that using the Gnome's root terminal messes up the $PATH variable (as of today)... when i start archlinux (note: i don't use GDM) my path is:
    /bin:/usr/bin:/sbin:/usr/sbin....
    and many other items... but when a root terminal is started inside gnome, $PATH changes to:
    /usr/ucb:/bin:/usr/bin:/etc
    And ldconfig will fail... (and any other tool in /sbin) this change is restricted to this window only. If you exit the root terminal and go to a normal terminal, the path is what is expected.
    This happens on a clean reformatted machine, installed archlinux, doing a pacman -Syu, installing gnome and all extras (including system administrations tools) (as tested today).
    Maybe some config file is messed or is a bug from the Gnome guys...
    Anyways the only workaround i can think is to start a normal terminal (for the guys that use gnome or use GDM to start their machines) and in the terminal doing a "su -" to got root access (of course will ask for the password) and then update/install/whatever you want with pacman.
    And sorry about my english.
    J.
    Last edited by stargeizer (2009-09-24 14:35:10)

  • Export: command not found

    I have been trying to install something via MacPorts and was following a blog that described setting the PATH appropriately so that the port command would work, however when I updated .bash_profile as described in the blog and tried to source it, it gives me the error, "export: command not found."
    currently echo $PATH returns: /Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/ sbin:/usr/local/bin:/usr/X11/bin
    Any thoughts on how to proceed?

    Please post the actual code.
    Also are you sure you are using the 'bash' shell (or sh, ksh, zsh shells)?  With all these shells 'export' is a built-in command and should never be "not found".
    Could you be using the csh or tcsh shell?  If you are using one of these shells, then setting environment variables is done using the 'setenv' command, which is also a csh/tcsh built-in.
    Use the following command to see what your default shell is:
    dscl . -read $HOME shell
    If you have csh or tcsh as your shell, then use something like the following to set your PATH environment variable:
    setenv PATH "$PATH:/the/stuff/you/are/adding"

  • (OEL 4.7) -bash: sqlplus: command not found after install of 10g R2

    Hi all
    I'm new to Linux and I would like your help and directions on a few things:
    After 2 days of battle with RPM's (i386 vs x86_64) i was finally able to install 10g R2 on OEL 4.7 x86_64 system without any errors.
    please check if all these settings are correct and help me how to start sqlplus? or create a database with dbca
    I followed all the directions in Doc ID: 339510.1.
    During installation i choose this path as the ORACLE_HOME
    /u01/app/oracle/product/10.2.0/
    I did not however installed the default database.
    I then ran the two scripts at the end of the installation as root.
    Here are my settings:
    oracle bash_profile:
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    here is my oracle env result
    [oracle@nycoralp01 /]$ env | grep -i ORACLE
    OLDPWD=/home/oracle/oraInventory
    USER=oracle
    ORACLE_BASE=/u01/app/oracle
    MAIL=/var/spool/mail/oracle
    PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin
    HOME=/home/oracle
    LOGNAME=oracle
    ORACLE_HOME=/product/10.2.0/db_1
    here is my echo $ORACLE_HOME result:
    [oracle@nycoralp01 /]$ echo $ORACLE_HOME
    /product/10.2.0/db_1
    Can someone please tell me what did i miss or did not set?
    When i try to run sqlplus i get this error
    [oracle@nycoralp01 /]$ sqlplus
    -bash: sqlplus: command not found
    Any help appreciated

    I change it in my bash_profile
    $ vi ~oracle/.bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=$PATH:$HOME/bin
    export PATH
    unset USERNAME
    :q
    ORACLE_BASE=/u01/app/oracle
    export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1;
    export ORACLE_HOME
    export PATH=$ORACLE_HOME/bin:$PATH
    and i'm still getting the same error
    -bash: sqlplus: command not found
    Is there anything else i'm missing? do i have to restart anything?

  • Opmnctl status: "bash: opmnctl: command not found"

    Hi All,
    I am working to setup an OBI 11g VM image to my local system. The VM is a linux OS and my local m/c is Windows7. I am able to login to the VM using oracle/oracle. But the thing is, I am not able to start up my BI server over the VM.
    I checked the status of opmnctl file present at: /home/oracle/obiee/instances/instance1/bin. But getting the message as "bash: opmnctl: command not found".
    I did reboot the VM a few times as well. But, i am not sure can this be a problem? Please suggest what I did wrong and how can I resolve it.
    Thanks.

    Is opmn running?
    try using a different shell e.g ksh.
    l

  • [solved] yaourt messed up pacman - "pacman: command not found"

    Hi,
    i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
    When there was only one left "aqpm2" this is what happened:
    [studio@myhost ~]$ yaourt -Rs aqpm2
    verificando dependências...
    Remover (2): aqpm2-20100615-2  qjson-0.7.1-2
    Tamanho total dos pacotes a serem removidos:   2,93 MB
    Deseja remover estes pacotes? [S/n] s
    (1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
    (2/2) removendo qjson                                                                                                     [##########################################################################] 100%
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    now pacman is broken:
    [studio@myhost ~]$ pacman
    bash: pacman: comando não encontrado
    [studio@myhost ~]$ yaourt -Syu --aur
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    You are not allowed to launch /usr/bin/pacman with sudo
    Please enter root password
    Senha:
    bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
    ==> WARNING: problem in pkgbuild.sh library
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    ==> Searching for new version on AUR
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    Unable to open file: /etc/pacman.conf
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    [studio@myhost ~]$ sudo pacman -Syu
    sudo: pacman: command not found
    please help
    Last edited by capoeira (2010-10-16 14:33:39)

    capoeira wrote:
    can I use pacman-static from this repro?
    I'm afraid to break system even more
    http://repo.archmobile.org/x86_64/archmobile/
    OK, that gave me a segfault, so
    I downloaded the package and copied the folders to root.
    no pacman works but gaves me this errors afterwards:
    pacman-3.4.1-1: description file is missing
    pacman-3.4.1-1: dependency file is missing
    pacman-3.4.1-1: file list is missing
    how do I solve this?
    BTW: should I make a bug-report??
    EDIT: any package I try to instal I get this error:
    erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado
    (it's in portuguese but i think its understandable)
    Last edited by capoeira (2010-10-15 22:08:36)

  • MAKEPKG -c error - PKGBUILD: line 32: patch: command not found

    Hello all,
    Well I am getting the above error when running the makepkg -c as user in my local abs tree i am using
    [devnull@myhell chromium]$ makepkg -c
    ==> Making package: chromium 0.9.12-6  (Sun Mar 30 01:43:39 EDT 2008)
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
      -> Found chromium-src-0.9.12.tar.gz in build dir
      -> Found chromium-data-0.9.12.tar.gz in build dir
      -> Found 0.9.12-gcc3-gentoo.patch in build dir
      -> Found 0.9.12-freealut.patch in build dir
      -> Found 0.9.12-configure.patch in build dir
      -> Found 0.9.12-png.patch in build dir
      -> Found chromium.sh in build dir
      -> Found chromium.png in build dir
      -> Found chromium.desktop in build dir
    ==> Validating source files with md5sums...
        chromium-src-0.9.12.tar.gz ... Passed
        chromium-data-0.9.12.tar.gz ... Passed
        0.9.12-gcc3-gentoo.patch ... Passed
        0.9.12-freealut.patch ... Passed
        0.9.12-configure.patch ... Passed
        0.9.12-png.patch ... Passed
        chromium.sh ... Passed
        chromium.png ... Passed
        chromium.desktop ... Passed
    ==> Extracting Sources...
      -> bsdtar -x -f chromium-src-0.9.12.tar.gz
      -> bsdtar -x -f chromium-data-0.9.12.tar.gz
    ==> Removing existing pkg/ directory...
    ==> Entering fakeroot environment...
    ==> Starting build()...
    PKGBUILD: line 32: patch: command not found
    ==> ERROR: Build Failed.
        Aborting...
    Here is a cut from PKBUILD file line 32:
    build(){
      cd $startdir/src/Chromium-0.9
      patch -p0 -i ../0.9.12-gcc3-gentoo.patch || return 1   <--- This is line 32 from pkbuild file
      patch -p0 -i ../0.9.12-freealut.patch || return 1
      #patch -p0 -i ../0.9.12-configure.patch || return 1
      patch -p0 -i ../0.9.12-png.patch || return 1
    Thanks you in advance for all your help

    Hello,
    /devnull.nsb wrote:
    Hello all,
    *snip*
    PKGBUILD: line 32: patch: command not found
    ==> ERROR: Build Failed.
        Aborting...
    *snip*
    It looks like you might not have patch installed.  What happens when you type
    pacman -Q patch
    If you get an error that the patch package is not found, install base-devel.

  • /bin/sh: -q: command not found

    Hi,
    I'm trying to install modauthzldap on Leopard Server, and I get this when I run make install:
    Making install in module
    if /bin/sh ../libtool --mode=compile ` -q CC` -DHAVECONFIGH -I. -I. -I.. -I` -q INCLUDEDIR` -I/usr/local/openssl/include -DAUTHZLDAP_HAVESSL ` -q CFLAGS` ` -q CFLAGS_SHLIB` -I/usr/local/openldap-2.1.21/include -MT modauthz_ldapla-auth.lo -MD -MP -MF ".deps/modauthz_ldapla-auth.Tpo" \
    -c -o modauthz_ldapla-auth.lo `test -f 'auth.c' || echo './'`auth.c; \
    then mv -f ".deps/modauthz_ldapla-auth.Tpo" ".deps/modauthz_ldapla-auth.Plo"; \
    else rm -f ".deps/modauthz_ldapla-auth.Tpo"; exit 1; \
    fi
    /bin/sh: -q: command not found
    /bin/sh: -q: command not found
    /bin/sh: -q: command not found
    /bin/sh: -q: command not found
    libtool: unrecognized option `-DHAVECONFIGH'
    Try `libtool --help' for more information.
    make[1]: * http://modauthz_ldapla-auth.lo Error 1
    make: * install-recursive Error 1
    Anyone know what that means? I've already installed openldap fine. OpenLDAP and modauthzldap are available here:
    http://www.openldap.org/software/download/
    http://authzldap.othello.ch/download.html

    It looks like the configure script was botched. It wants to run the APXS apache program, but the APXS variable isn't defined. APXS, however, doesn't seem to be required by the configure script.
    Sorry. I can tell you why it dies, but I can't do much about fixing it. If you really want it, you should install the apache APXS stuff. I think it is the apache developer kit.

  • [CLOSED] bash: pyuic4: command not found

    Some day, i found that pyuic4 is missed from my computer.
    $pyuic4
    bash: pyuic4: command not found
    $py
    pyalacarte pydoc2 pylint pyshell python2-config python3.3m-config pywxrc
    pyalamode pydoc3 pylint-gui pytest2 python2-pyuic4 python3-config
    pycolor2 pydoc3.3 pylupdate4 python python3 python-config
    pycrust pygobject-codegen-2.0 pyprof2calltree python2 python3.3 pyvenv
    pydb pygtk-codegen-2.0 pyrcc4 python2.7 python3.3-config pyvenv-3.3
    pydoc pygtk-demo pyreverse python2.7-config python3.3m pywrap
    I use python2, symlink is set in my homefolder
    $echo $PATH
    /home/stig/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/qt/bin
    echo $PYTHONPATH gives nothing.
    I've tried to reinstall pyqt-common python2-pyqt, but problem is still persist.
    What can it be?
    Please, help to find out the reason and restore pyuic4
    Last edited by citizen-stig (2013-01-20 14:09:29)

    Thank you.
    I don't know, why it package has been deleted.
    reinstalling helps.

  • -bash:  cat: command not found (or grep)

    Hi, Strange things:
    i3: okn$ ls -R | grep -h "dof" | cat > dtext.txt
    -bash:  cat: command not found
    or then I get this:
    i3: okn$ find . -type f -print | grep -c
    -bash:  grep: command not found
    but this is not happening all the time, i remember grep or cat did work once or twice...
    What's going on here?
    OS 10.7.4; repaired permissions
    Any assistance much appreciated!
    / bw, Omar KN

    'cat' is stored in /bin/cat, NOT /usr/bin/cat, which explains the file not found messages above.
    HOWEVER, the information you have provided seems to imply you have the executables, and previous information provides says you have a valid PATH:
    echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbi n:/sbin:/usr/local/bin:/usr/X11/bin
    this creates a mystery as to why you are getting:
    -bash:  cat: command not found
    -bash:  grep: command not found
    I have a couple of thoughts.
    a) I'm wondering if you have any 'alias' statements in your .bash_profile (or .bash_login, or .profile, or .bashrc).
    b) if you would get the same results should you rename your .bash_profile (and/or .bash_login, .profile, .bashrc) to something like saved.bash_profile, then restart your terminal session (basically eliminating any personalized shell customization).
    c) what would happen if you created a new account (System Preferences -> Accounts) - basically a clean starting point.
    d) are you executing these commands from the command prompt?  Or from within a shell script?
    d.1) if from within a shell script, is the script file the correct file format.
    file name.shell.script
    you want to check that the output from the 'file' command DOES NOT say "...with CRLF line terminators...", as that would imply the the file came from (or through) a Windows system.

  • Gcc: command not found problem

    Hi,
    i just full installed cygwin 1.5.5-1 'cause i need to comiple and build a dll so i need to use gcc but in response to this command:
    gcc helloworld.cpp
    i get:
    bash: gcc: command not found
    Is that a windows xp problem or do i have to somehow configure cygwin? I read all the manuals i found but couldn't help.
    Best regards
    Nereida

    Depending on the way you install cygwin, the start for setup.exe is different.
    I will explain the way starting from web:
    http://www.cygwin.com/setup.exe
    You have to choose
    1) Install from Internet
    2) your directory for cygwin like: "D:\Programme\cygwin"
    and the install for all or just for you
    3) choose a local package directory like "D:\Programme\cygwin"
    4) choose the settings to access the web like "Use IE5 Settings"
    5) choose the nearest you download server
    !!! and now the interesting Selection starts: !!!
    A tree of packages is listed you have to click at 6. line (+Devel) at the word Default
    +Devel # Default
    Default should changed to:
    +Devel #  Install
    ...this is already your developer-pack within gcc
    but further you have to go to Libs (line 12) and now click to the '+' -sign:
    + Libs # Default
    The lib tree should now opened.
    go up to the 5. last line at the 6. column "Package" you should read w32api: Win32 API header and library ...
    look back to column 3 "New" there stands Skip click on it [as long] that you see the version number (2.5-1) or any better
    It should help but it is not necessary to click on
    + Doc # Default (line 7)
    so that it changes to
    + Doc # Install.
    so now you can finish your installation!
    I hope it helps
    mike

  • Terminal: Command not found

    I'm trying to install ruby via homebrew onto my computer (Macbook air Yosemite), but when I put a command into the terminal, I always get "command not found".
    I was trying to open ~/.bash_profile to TextEdit and add on export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/user/local/php5/bin:/user/loc​al/mysql/bin but when I put in~/.bash_profile it comes up with /.bash_profile: Permission denied
    I don't remember all the details but yesterday I also tried text editing homebrew and it didn't do anything so I undid it.
    Any suggestions would be greatly appreciated!

    Well, I'm afraid I'm not going to be much more use than to suggest:
    Make sure to make a copy in case something goes wrong.
    1. Check out this site. Seemed to be helpful for modifying the path.
    http://albertogrespan.com/blog/installing-ruby-the-right-way-on-os-x-using-rbenv /
    2. I don't think you need all the lines with "if which rbenv..." Try removing all but one. (might want to keep two with the fode_modules)
    3. Try editing the end of the first line to:
    export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/user/local/php5/bin:$PATH
    4. Remember that after each attempt you need to type into terminal "source .bash_profile" otherwise the changes won't take effect.
    5. Uninstall and reinstall ruby.
    TextEditor is really awful now in the new operating system. It saves changes automatically, so if you accidentally make a change and don't notice, you could screw things up. Sorry I can't be more help.

Maybe you are looking for