Command not found error in Linux

Hi all,
While login into Linux server using terminal i am getting following error.
-bash: /usr/bin/id: No such file or directory
-bash: [: =: unary operator expected
While execute these commands getting following errors
# clear
-bash: clear: command not found
# du -sh *
-bash: du: command not found
Help on these issues.
Linux 32bit OS.
Red Hat Enterprise Linux Server release 4.0 (Tikanga)

Likely a flaky environment.
What is the contents of .bash_profile in your $HOME?
Any btw, why RHEL4? It is ancient.

Similar Messages

  • Command not found error while executing shell programs in terminal

    I have written one sample shell program.
    while executing shell program in terminal,it shows COMMAND NOT FOUND error.
    How to slove this.

    Post the "Actual" error.  It says more than command not found.
    Post your script.
    Post the output from:
    echo $PATH
    Post the output from:
    which name_of_command_not_found

  • Terminal troubles. Command not found error in the directory of the command.

    I'm getting a "command not found" error when I am in the directory of the command I want to run. For example try to run 'mysql' in the directory with that executable file and I get the error. BUT, if I put the full path to the mysql command, starting from the root, the command works correctly.
    I know this isn't a PATH issue, since I'm in the location of the file.
    It seems like a possible permissions issue, but I appear to have the proper permissions to the command and all parent directories. Moreover, I would assume that I would see a "permissions denied" error rather than a "command not found" error if this was the case.
    Beyond the two possibilities above, I'm stumped as to what the issue could be. To be clear, this is happening on more than one command, although both commands are within the /usr/local/ directory.
    Any help would be greatly appreciated!!! Thanks in advance!

    By default . is not included in your PATH and the shell does not do this on its own, as that is an easy way for someone to get a user to execute a Trojan.
    For example, in a multi-user system you create a script 'ls' and put it in a directory with a bunch of other stuff. Then go over to a user on the same system and ask them to help you with something in this directory. The first thing they will do is issue the 'ls' command, which if you have . in your PATH, or the shell always looks in the current working directory, means this user would execute the Trojan script instead of the real 'ls' command. That script do do anything using the privileges of the user running that script, including modifying stuff in their home directory that could give the person asking for help future access to that user's files and data.
    That is why . (the current working directory) is NOT part of PATH by default and shells do not look in the current working directory by default.

  • Aerender CC 2014 returns "command not found" error on Mac 10.9.3?

    Well, that about sums it up. I'm trying to run aerender in Terminal and I just get a command not found error.
    Here's the batch script: "aerender -project /Volumes/xxx/After_Effects_Templates/xxx.aep -comp "Final_Web_800x600" -OMtemplate 800x600 H.264-output /Volumes/xxx/Renders/rendertest.mov"
    Anyone know what I'm doing wrong?
    Many thanks in advance.
    Bettsy

    Hi wsrphoto,
    You need to follow these steps.
    1. Launch creative cloud application.
    2. Go to Preferences and go to Account tab.
    3. Sign out from there and then quit creative cloud application.
    4. Launch Creative cloud again and log-in back again
    5. Then download and install the product.
    Please revert if you still face any issue.

  • 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.

  • Shell Commands not found error when running application

    Hello,
    Im using MonoDevelop IDE in my Mac, before it used to work fine but after few days, now when I'm opening the application nothing happens., i checked the Console  for the log and it says this
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 17: dirname: command not found 
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 31: //mono-version-check: No such file or directory
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x52052].com.ximian.monodevelop[1510]): Exited with code: 1
    I thought may be some error with the "dirname" command, so i commented it in the code and gave the path of directory myself and then the console shows up like this.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: grep: command not found 
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 20: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 21: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 22: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 31: osascript: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: Cannot launch MonoDevelop
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: MonoDevelop requires the Mono Framework version 2.10.4 or later.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x56056].com.ximian.monodevelop[1532]): Exited with code: 1
    I opened the contents of the application and run the shell script for opening aplication there it worked very fine and application started working.. But if i open application directly through launchpad or finder it doesnt show up and console
    I tried running those commands in the terminal directly there they work.. But dunno whats wrong in here. and even if try to open the application through the terminal it all opens fine.. what could be the possible problem, is it with my mac..?

    i finally figured out the problem.. it is with the environmental variables.  the path for all those commands like "grep" is not being set for the GUI applications.  that is why i got that error. 
    for those GUI applications which require path, we have to set path in the file /etc/launchd.conf  the environmental variables set in here are used by the gui applications and those which are launched through spotlight.
    that file may bot be present in most of the macs. No problem even if not present,we can create one and use.
    so  type in terminal
              $ sudo vi /etc/launchd.conf     
    and in the editor add these lines
              setenv PATH = /new/path
    and save.  Note: replace /new/path with the path which you need to have for the commands used in the script.
    remeber that you need to restart your mac for applications to use these environmental variables.

  • HELP! Installer_Script_Springboard__: line 13: s: command not found ERROR

    got this error in the Installer log while using the upgrading option to Leopard. After that the installation just stalled and did not move. I have tried more than a few times. and same results. Can ANYONE PLEASE HELP ? Below is the error message
    Oct 27 05:48:23 localhost runner150: _Installer_Script_Springboard_163: /Volumes/Reddy`s HD/private/tmp/scripts.VaIV/_Installer_Script_Springboard_: line 13: s: command not found
    Oct 27 05:48:23 localhost runner150: _Installer_Script_Springboard_163:
    Oct 27 05:56:19 localhost Unknown67: 2007-10-27 05:56 Mac OS X Installer143 (CarbonCore.framework) FSEventStreamStart: ERROR: FSEvents_connect() => Unknown service name (1102)
    Oct 27 05:56:21 localhost OSInstaller143: installAutoFSMonitor: open failed

    Hi!
    After 6 hours of experimenting, disconnecting devices, formatting my hard drive (joy!) and getting nowhere, I found the problem: apparently, Leopard has trouble dealing with some characters in the volume name (in my case it was '). Rename the volume to something simple, short and with no weird characters and the Leopard will install.
    And, to Apple: I'm very disappointed with the quality of the Leopard install. If a character is valid in OS X, the setup should support it!
    Best regards,
    IYan

  • Spool Command not found error

    Dear friends,
    I am trying to get the list of active and inactive sessions for some users and created a script for this but getting some error message.
    Could you please check why I am getting this error while running from the putty. The same sql command I run from sql developer and get the output with no errors.
    Script:
    set pagesize 0
    set feedback off
    set echo off
    sqlplus '/as sysdba'
    spool kill_session_list.sql;
    select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';'
    from v$session
    where type!='BACKGROUND'
    and username in('RO_USER','KHALIED','INFAREP','DAC','DMUSER_PROD','LAND_PROD','STAGE_PROD','BIUSER_PROD','OLAPDW','DWRO');
    spool off;
    exit
    Error msg:
    ./kill_session_generate.sql: line 5: spool: command not found
    ./kill_session_generate.sql: line 6: syntax error near unexpected token `||'
    ./kill_session_generate.sql: line 6: `select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';''
    Thanks.

    877938 wrote:
    Dear friends,
    I am trying to get the list of active and inactive sessions for some users and created a script for this but getting some error message.
    ./kill_session_generate.sql: line 5: spool: command not found
    ./kill_session_generate.sql: line 6: syntax error near unexpected token `||'
    ./kill_session_generate.sql: line 6: `select 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''';''Odd.
    Look at the script kill_session_generate.sql very carefully, especially the lines before and after the SPOOL command as well as the spool command itself. Consider deleting and retyping the line with the SPOOL command in case invisible special characters are causing problems
    Good luck!

  • Command not found error

    I'm trying to run this command in my terminal:
    sudo ./cloudera-manager-installer.bin
    however, it is saying that such a command is not found... I've tried also inputting the actual path to the object as such:
    sudo ./cloudera-manager-installer.bin
    and have gotten the same error messsage. Any feedback would be greatly appreciated!

    The second command is the same as the first. It will work only if there is an executable named "cloudera-manager-installer.bin" in the current directory. If there isn't, change to the directory or use the full path.

  • [SOLVED] /bin/bash: endif: command not found ERROR while saving in vim

    My .vimrc file
    set expandtab
    set number
    syntax on
    set autoindent shiftwidth=4
    set smartindent
    set tabstop=4
    set smartcase
    colorscheme elflord
    set incsearch
    set hlsearch
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    " Tell vim to remember certain things when we exit
    " '10 : marks will be remembered for up to 10 previously edited files
    " "100 : will save up to 100 lines for each register
    " :20 : up to 20 lines of command-line history will be remembered
    " % : saves and restores the buffer list
    " n... : where to save the viminfo files
    set viminfo='10,\"100,:20,%,n~/.viminfo
    function! ResCur()
    if line("'\"") <= line("$")
    normal! g`"
    return 1
    endif
    endfunction
    augroup resCur
    autocmd!
    autocmd BufWinEnter * call ResCur()
    augroup END
    On some files, I get this error http://i.imgur.com/lKFvm.png at the bottom of vim . Please note that I get the error not on all files. Its driving me crazy!
    Last edited by shadyabhi (2011-09-11 02:41:52)

    Replace this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    with this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent execute "!chmod a+x <afile>" | endif | endif
    If the above doesn't work for you (though it should in Vim > 7), try a different way of doing the same thing:
    function ModeChange()
    if getline(1) =~ "^#!"
    if getline(1) =~ "/bin/"
    silent !chmod a+x <afile>
    endif
    endif
    endfunction
    au BufWritePost * call ModeChange()
    Last edited by bohoomil (2011-09-11 02:29:58)

  • LSNRCTL command not found - Ubuntu Linux 9.10

    Good day, everyone! So, I've been searching all over the place to find an answer for this, but have not been successful. Hopefully I can get this resolved.
    So I have the Oracle 10g XE database installed on my Ubuntu 9.10 Linux server, and it works perfectly fine. However, when trying to tie the data source to my website via Visual Web Developer, it states that the listener is not running. After reading some documentation, I go to run a terminal session and log into the oracle user on my Linux box and try running "LSNRCTL start", but I get a "command not found" error. I've tried multiple things: using root to run it, going to the actual oracle xe installation folder to run it, nothing. Anyone got any thoughts on how I can fix this? Thanks!

    Hi,
    I have the same issue:- lsnrctl command not found,
    And when I echo oracle host & path I got:-
    [oracle@ddcdevws02 etc]$ echo $ORACLE_HOST
    [oracle@ddcdevws02 etc]$ echo $PATH
    /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/u02/oracle/bin
    Now I know that my environment is not set, but could please tell me how I can set the environmernt ??? I mean commands or detailed instruction step as to what needs to be set where & how, I mean the SID, port, Path ???, I am new to Linux as well as database .
    Also In the host file under /etc/ directory I have these settings
    127.0.0.1 localhost.localdomain localhost
    10.201.60.21 ddcdevws02.hddev.healthdialog.com ddcdevws02
    I don't know if this is correct or not ? But I doubt make any change in the host file, please suggest me.
    Thanks
    Sam

  • 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.

  • [SOLVED] Error uninstalling eclipse: "post-install: command not found"

    When I try uninstalling eclipse , I get "error: command failed to execute correctly"
    w0ng@e8500 ~
    % sudo pacman -Rns eclipse
    checking dependencies...
    Targets (8): glib-networking-2.30.2-1 gsettings-desktop-schemas-3.2.0-1 gstreamer0.10-0.10.36-1
    gstreamer0.10-base-0.10.36-1 libproxy-0.4.7-1 libsoup-2.36.1-1 libwebkit-1.6.3-1
    eclipse-3.7.2-2
    Total Removed Size: 243.84 MiB
    Do you want to remove these packages? [Y/n] y
    (1/8) removing eclipse [######################################] 100%
    /tmp/alpm_eY6rVO/.INSTALL: line 10: post-install: command not found
    error: command failed to execute correctly
    (2/8) removing libwebkit [######################################] 100%
    (3/8) removing libsoup [######################################] 100%
    (4/8) removing glib-networking [######################################] 100%
    (5/8) removing libproxy [######################################] 100%
    (6/8) removing gsettings-desktop-schemas [######################################] 100%
    No schema files found: removed existing output file.
    (7/8) removing gstreamer0.10-base [######################################] 100%
    (8/8) removing gstreamer0.10 [######################################] 100%
    w0ng@e8500 ~
    But all files appear to be removed successfully.
    w0ng@e8500 ~
    % sudo updatedb && locate eclipse
    /usr/share/highlight/themes/edit-eclipse.theme
    /usr/share/icons/Faenza/apps/16/eclipse.png
    /usr/share/icons/Faenza/apps/22/eclipse.png
    /usr/share/icons/Faenza/apps/24/eclipse.png
    /usr/share/icons/Faenza/apps/32/eclipse.png
    /usr/share/icons/Faenza/apps/48/eclipse.png
    /usr/share/icons/Faenza/apps/64/eclipse.png
    /usr/share/icons/Faenza/apps/96/eclipse.png
    /usr/share/icons/Faenza/apps/scalable/eclipse.svg
    /var/abs/community/eclipse-cdt
    /var/abs/community/eclipse-cdt/PKGBUILD
    /var/abs/core/licenses/eclipse-1.0.txt
    /var/abs/extra/eclipse
    /var/abs/extra/eclipse-ecj
    /var/abs/extra/eclipse/PKGBUILD
    /var/abs/extra/eclipse/eclipse.desktop
    /var/abs/extra/eclipse/eclipse.install
    /var/abs/extra/eclipse/eclipse.sh
    /var/abs/extra/eclipse/eclipse.svg
    /var/abs/extra/eclipse-ecj/PKGBUILD
    /var/abs/extra/eclipse-ecj/ecj
    w0ng@e8500 ~
    Should I be concerned or is everything fine? Can anyone reproduce this?
    Last edited by w0ng (2012-03-28 19:00:30)

    Check /var/abs/extra/eclipse/eclipse.install. Typo in post_remove: post-install should be post_install. You can run the post_install manually (and maybe report this in the bug tracker), but it just updates the gtk icon cache, so it's nothing to worry about.

  • [SOLVED] Unable to build packages from AUR (build: command not found)

    I recently hosed the filesystem on my arch install of ~8 months. I reinstalled arch today and didn't have many problems since I had backups of many important config files. Anyways, I still need to get a few programs installed from AUR, but nothing I get from AUR will build.
    I download the tarball, extract into a folder in /home/myuser/builds and then go into that folder and run makepkg -s (as always)
    It checks the files and extracts/downloads them. Then I get the following error message:
    ==> Starting build()...
    /usr/bin/makepkg: line 741: build: command not found
    ==> ERROR: Build Failed.
    Aborting...
    I've run abs and I checked out the abs wiki page, I've also installed base-devel. I am not sure what else I need to do, the error message is not specific enough.
    The packages I have been trying to install are      ttf-ms-fonts 2.0-7,      keepass 2.14-2, and I also tried ttf-vista-fonts 1-3. I am fairly certain that it is not a problem with the PKGBUILD files.
    Any ideas? Thanks!
    Last edited by fatjake (2011-03-08 01:02:59)

    cyrus wrote:Have you tried Yaourt?
    Nope, haven't tried that, I think mainly because I wanted to learn how to use pacman and how to build using ABS. At this point I think I know how to use pacman/abs, as much as this thread might make it appear that I dont
    I'll give it a try, as I frequently install software from AUR. In the past I think I let software from the AUR get outdated, Yaourt (clumsy name) sounds like it would help that a bit. Thanks!
    Edit: BTW, I really love Arch. I tried it out on a flash drive about 8 months ago (maybe more), and after about 12 hours I was sold and installed it on the drive that Windows XP previously held. Even considering that I had many problems during the initial install, but they were all problems that caused me to learn and were easy to resolve. Seriously, I have lots of Windows tech experience, but only Arch forced me to learn Linux. I had tried Ubuntu previously but it was such a bore, and the problems tended to be hard to find solutions for. I try to convince my other Linux using friends to try arch, but they see it as too hands-on. I don't see it that way, it is very hands off after initial configuration, and the initial config only takes a week or less on the first try and a day and a half (or so) if you re-install. Having backups of your config files is of course a huge deal, and I am glad I had most of those.
    Really, I love Arch Linux, it has taught me so much.
    Last edited by fatjake (2011-03-08 04:25:15)

  • [SOLVED] virtualbox-modules: dkms: command not found

    $ makepkg -s
    ==> Making package: virtualbox-modules 4.2.6-4 (Tue Jan 29 15:42:01 EET 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
    ==> Extracting Sources...
    ==> Removing existing pkg/ directory...
    ==> Starting build()...
    -> Host modules
    /home/yuri/builds/virtualbox-modules/PKGBUILD: line 26: dkms: command not found
    ==> ERROR: A failure occurred in build().
    Aborting...
    $ which dkms
    which: no dkms in (~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)
    $ su - -c 'which dkms'
    /usr/sbin/dkms
    Since makepkg uses fakeroot (and should never be run as root), ...
    https://wiki.archlinux.org/index.php/AUR
    What is the proper way to make it work? Thank you.
    Last edited by x-yuri (2013-01-29 19:33:44)

    It's not my PKGBUILD. It's PKGBUILD, downloaded by abs (community/virtualbox-modules):
    # $Id: PKGBUILD 82593 2013-01-21 11:10:44Z tpowa $
    # Maintainer: Ionut Biru <[email protected]>
    # Maintainer: Sébastien Luttringer <[email protected]>
    pkgbase=virtualbox-modules
    pkgname=('virtualbox-host-modules' 'virtualbox-guest-modules')
    pkgver=4.2.6
    pkgrel=4
    arch=('i686' 'x86_64')
    url='http://virtualbox.org'
    license=('GPL')
    makedepends=('linux-headers'
    "virtualbox-host-dkms>=$pkgver"
    "virtualbox-guest-dkms>=$pkgver"
    'expac'
    'bc')
    build() {
    _kernver=$(expac -Q '%v' linux-headers)-ARCH
    # dkms need modification to be run as user
    cp -r /var/lib/dkms .
    echo "dkms_tree='$srcdir/dkms'" > dkms.conf
    # build host modules
    msg2 'Host modules'
    dkms --dkmsframework dkms.conf build "vboxhost/$pkgver" -k "$_kernver"
    # build guest modules
    msg2 'Guest modules'
    dkms --dkmsframework dkms.conf build "vboxguest/$pkgver" -k "$_kernver"
    package_virtualbox-host-modules(){
    _kernver=$(expac -Q '%v' linux-headers)-ARCH
    _extraver=extramodules-${_kernver%.*}-ARCH
    pkgdesc='Host kernel modules for VirtualBox'
    depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
    replaces=('virtualbox-modules')
    conflicts=('virtualbox-modules')
    install=virtualbox-host-modules.install
    install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
    cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
    install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
    find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
    sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-host-modules.install"
    package_virtualbox-guest-modules(){
    _kernver=$(expac -Q '%v' linux-headers)-ARCH
    _extraver=extramodules-${_kernver%.*}-ARCH
    pkgdesc='Guest kernel modules for VirtualBox'
    license=('GPL')
    depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
    replaces=('virtualbox-archlinux-modules')
    conflicts=('virtualbox-archlinux-modules')
    install=virtualbox-guest-modules.install
    install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
    cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
    install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
    find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
    sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-guest-modules.install"
    # vim:set ts=2 sw=2 et:
    Could it possibly be that this time makepkg must be run as root?

Maybe you are looking for

  • ALV report - remove of decimal values

    Hi experts, In my ALV report, output table having decimal values, ex:90000.50, i want to display only 90000, can help any one inthis. Thanks in advance. Regards Rams

  • I just loaded Photoshop Elements 11 Classroom in a Book lessons and now I cannot open PS Elements 11

    I just loaded Photoshop Elements 11 Classroom in a Book lessons and now I cannot open PS Elements 11

  • Copy long text from PROJ to WBS

    When creating a new project (CJ01) I create new WBS and populate its fields from project automatically. I use enhancement and everything is copying ok except the long text. I do READ_TEXT and it get long text from project (TEXT_HEADER-TDNAME D9999999

  • Long text

    Can someone please explain how to add activity long text in the notification? Currently i am using BAPI_ALM_NOTIFY_DATA_ADD BAPI_ALM_NOTIFY_SAVE BAPI_TRANSACTION_COMMIT. It is adding a activity but long text is not getting updated. thanks and regards

  • Planed costs on Simulation Version

    Where can I see the planed costs on Simulation? I have an escenario where the project is created as Simulation, and after this one is evaluated on duration and costs, the user transfer the simulation to an operative project, but I need to see the pla