Compile smartmontools pkg from terminal: command not found

hi there!
when i comiple tar.gz packages i usally install it by this way:
  cd smartmontools-6.0
  ./configure
  make
  sudo make install
everythink ok but when i prompt:
smartctl /dev/disk1s2
i see the error: command not found
whats wrong? i googled it up and it seems that the command isnt in the system path but cant find to fix it!
is a smartctl specific problem or after compiling/install am i missing something?
thanks
Enrico
(osx: 10.8.2)

Open Source installers DO NOT mess with individual user shell initialization scripts.  Open Source project may be installed on single user systems, or multi-user systems so to update every possible user's shell initialization files becomes a nightmare.   For example which accounts should be updated, and which are daemon accounts that should be left along.  Which shell does the user of each account prefer to use?  And for some shells, there are multiple different shell initialzation files, so which one does the shell initialzation file select.  And if the user already has a PATH environment variable in a shell initializaton file that gets executed AFTER the file the installer choose (.bash_profile vs .bashrc), then all the installers work would be for nothing, and worse confuse the user. And the user already has the directory in PATH, but they are not logged in, does the installer parse all the other user's shell initialzation files to figure out if that user does not need an update PATH, or does it blindly add yet another export PATH to one of the shell initialization files?
Open Source installers worry about the getting the app built and installed.  It leaves the user's personal files alone, for very good reasons :-)

Similar Messages

  • Recover Accidentally Deleted Files in OS X via Terminal, "command not found"

    Hi!
    I am trying to recover a folder from the trash. It was deleted 30 min ago. The command I am trying to use is;
    Mys-MacBook-Pro:~ storedisk$ com.apple.Finder AppleShowAllFiles true
    And the response is;
    -bash: com.apple.Finder: command not found
    When I open any Terminal window I get this message, I don't know if this is relevant;
    Last login: Wed Nov 13 08:27:40 on ttys001
    I have found some similar replies on the forum but they do not seem to work in my case. I'm new to Terminal so I would really appreciate the help to find the cause and to resolve my problem.
    Thanks a lot!

    Thank you so much. This is the reply that I got;
    Mys-MacBook-Pro:~ storedisk$ ls -a .Trash
    .                                        Cherry Blossoms
    ..                                        FLiCKS
    .DS_Store                              Nicholas Nickleby (1977)
    13 Tzameti                              Robin Hood (2010)
    Catch-22 [1970]                              We Live in Public 2009
    Mys-MacBook-Pro:~ storedisk$ mv .Trash/FLiCKS .
    Mys-MacBook-Pro:~ storedisk$
    Mys-MacBook-Pro:~ storedisk$ mv .Trash/FLiCKS
    usage: mv [-f | -i | -n] [-v] source target
           mv [-f | -i | -n] [-v] source ... directory
    It is the FLiCKS folder that I am trying to retreive. Does this mean that I can retreive it? And if so, when I use the command mv .Trash/filename, where should it appear? Sorry for not fully understanding the instructions.
    I also tend to empty the trash cumpulsively, which is how this happened in the first place. Trying to empty the files already in the trash but accidentally having had this folder selected I emptied that and kept the files that I didn't want.
    The trash folder still has the size as if the folder FLiCKS is still in there though, if that makes any difference?
    Thank you for all of your help.

  • The majority of Terminal command, "not found"

    When I was trying to mess around with my Kinect camera on my iMac today, via Terminal, I noticed a peculiar thing occurring when I tried to use even the most basic of Terminal commands.
    For example, I typed in "ls" to try to list the directories and files of my current directory, but was presented with the following instead:
    "-bash: ls: command not found"
    Without the quotes obviously.
    Why is this happening? Should I be concerned?

    Is there any reason why I don't have a ".profile saved.profile" or a ".bash_profile saved.bash_profile"?
    It just displays:
    "No such file or directory".
    Ouch! By default there are no shell initialization files. I was assuming that the MySQL installation created either a .profile or a .bash_profile, or the instructions had you manually creating one of them.
    If you do not have a .profile nor a .bash_profile, then I'm not sure where the MySQL installation put them.
    But just to be on the safe side and make sure we are looking in the correct directory try:
    echo $HOME # just want to make $HOME variable is properly setup.
    /bin/ls -l $HOME/.profile $HOME/.bash_profile $HOME/.bash_login $HOME/.bashrc
    I apologize if I missed some of your explanations, I don't mean to be fussy!
    Your Terminal sessions are not working. I would be more than "fussy" if that happened to me! Then again, I live inside of terminal sessions
    xurizaemon had an earlier post where he listed some additional places that PATH could be modified.
    /bin/cat /etc/profile
    /bin/ls -R /etc/paths.d
    You might go back and re-read what xurizaemon wrote in that post.
    Another thing you could try is, using System Preferences -> Accounts, create a new account, and see if that account has the same Terminal problem (this is an experiment, not a solution). If it does, then it would seem the changes were global, so the /etc/profile, and /etc/paths.d locations are candidates. If the problem does NOT occur for a new account, then this would point to $HOME/.profile, $HOME/.bash_profile, $HOME/.bash_login.
    Message was edited by: BobHarris

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

  • Terminal: commands not found

    In Terminal, I cannot use simple commands such as cp, mv, ls, bash, etc. I think this problem came about after I installed Darwinports, but I'm not positive about that. This same problem also happens when using a terminal widget.
    Is there a way I can 'reset' my terminal or do something similar to be able to use these commands again? I'm actually yet to find a command that actually does work in Terminal.

    Hmm, I have never played with this, but it looks like Apple's Unix sets the default path differently than from what I expected. For a default user environment, it looks like the PATH is set in /private/etc/profile . (See for instance the post Path environment variable setting. You should check that file to make sure that you have a couple of lines that say:
    PATH="/bin:/sbin:/usr/bin:/usr/sbin"
    export PATH
    It is also possible to add to the PATH or to override the PATH in different configuration files. I don't know all the different files that bash will search through. But, I suspect that you probably have one configuration file in your home directory which has the line
    PATH="/opt/local/bin"
    Look to see if you have one of the files: ~/.bash_profile or ~/.bashrc . If so, see if one of them sets the PATH as shown above. If so, modify the line to look like:
    PATH="$PATH:/opt/local/bin"
    Then, log back in and see if your unix commands work okay.

  • 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

  • Type "purge" in Terminal and get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   want to clear memory periodically

    I have 10.6.8.  When I type "purge" in Terminal I get:   -bash: purge: command not found   Is there another built-in command to clear memory leaks?   I have FreeMemory (works well) and considering FreeMemory Pro, to clear memory periodically, say every 20 minutes, or preferably when a threshold is reached, say when only 100MB is available.

    To get purge to work you need to install Xcode from Optional Installs on the 10.6 install DVD. Also be sure you install CHUD Tools with it.
    But running purge or anything like it is pointless if within a short period of time the VM just grows back again. Sounds like you need more RAM.
    Where are the memory leaks? Just because the VM reaches a certain size doesn't necessarily mean it's from a memory leak.

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • [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)

  • HT5627 when I copy it in the terminal, it tells me : " sudo: serveradmin: command not found "

    what should I do ? What did I do wrong ?

    This error?
    $ sudo serveradmin
    Password:
    sudo: serveradmin: command not found
    $
    That usually means you're not logged in on an OS X Server configuration — which is separate from having the Server.app tool loaded onto the system, when you're doing remote management —  or as Linc Davis mentions, that the PATH setting is incorrect.  The correct PATH should look something like this:
    $ sudo echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/S erverRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
    $
    I wouldn't expect PATH to be incorrect on the root user on the server, barring some site-local tweaks to that context.  But if there have been changes to PATH, then I'd add both bin and sbin within Server.app into the path.  (This change should not be necessary, though.  The PATH should have the correct settings within Server.app by default.)
    If you're looking to use serveradmin on a remote server, then the usual approach is to enable and ssh into the target OS X Server system (ssh [email protected]), or to use ARD or related to push commands, or to use screen sharing and a remote desktop.   ssh is by far the lightest and fastest of these options.  
    AFAIK, the command-line serveradmin tool doesn't do remote management.  There's no obvious way provided to specify the identity of a target server.

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

  • I have this message on Terminal. nano/private/etc/hosts: command not found. How can I fix it to get right?

    /etc/hosts ; exit;
    /etc/hosts: line 7: 127.0.0.1: command not found
    /etc/hosts: line 8: 255.255.255.255: command not found
    /etc/hosts: line 9: ::1: command not found
    logout

    What are you attempting to do?

  • Command not found on running binary files.

    I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros.
    I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "command not found" message. For e.g I tried to run adb(5 different files from different places), from terminal and from the folder in which is each and all times I get "command not found" message.
    Some other work though, as eclipse binary. All files I've tried worked fine, and also work fine if I run them from Ubuntu installation.
    I had this problem and for some newly isntalled packages too, as packagkit, and rutorrent. Packagekit worked after a reboot, but rutorrent gives same message.
    Any help?

    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
    bash: QtADB: command not found
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ ./QtADBbash: ./QtADB: No such file or directory
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh ./QtADB
    ./QtADB: ./QtADB: cannot execute binary file
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh QtADB
    QtADB: QtADB: cannot execute binary file
    user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition $ ls -l
    σύνολο 2940
    -rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
    -rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
    -rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
    drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
    drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $
    Last edited by dancer69 (2013-01-17 18:30:23)

  • Brrestore give error termination message not found

    Dear all
    i have try to restore offline backup to test system bcaz while database upgrade it got crashed it shows error ora-01157 and ora-01110 i have the backup of system
    while i am trying to restore the backup it throws error terminated message not found d:\oracle\SID\sapbackup\beojggvh.afd log file incomplete
    i used following command
    brrestore -b beojggvh.afd -m full -c
    i copied backSID.log and beojggvh.afd file from offline backup folder to target system /oracle/sid/sapbackup  suggest i went wrong
    i am on windows
    Regards

    Hi,
    Share the complete error log file and make sure data file using for restore should be a successful one complete offline backup.In addition share alert_<SID>.log file also.
    Regards,
    Gaurav

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

Maybe you are looking for

  • Ios 6.0.1 no connection iphone 3gs

    Hi there, Here a short description of my problem: i have got an iphone 3gs and after the update to ios 6.0.1 I have problems with my connection. It's always searching and mostly not finding a connection... Sometimes it gets a connection for short tim

  • Since Update - Mail won't connect to server 50% of the time?

    There have been a few minor glitches since I downloaded the recent update (screen freezes for 2-3 seconds, buttons are non-responsive or overly sensitive), but the most frustrating problem that SEEMS to relate is: About half of the time, when I try t

  • How to find repairs done ( through access key)  in SAP ECC 6.0 system

    Hi Experts, I have to find the Repairs ( ie standard code is edited with access key ) done in my SAP ECC 6.0 system. I want to find out the repairs which was done my some developer using the access key and also want to segregate the ones which were d

  • I need to know, what was the last user who modify the customer hierarchy???

    Someone know s, what´s the name of a table or something, to find the last user who modified the customer hierarchy, and the date.?? Thanks everyone for your help!!!

  • Where can I dowload Acrobat Standard 8?

    In 2007 I upgraded from Acrobat 5 to 8. I download the program from a link provided from my account online. I now purchased a new computer. Deactivated 8.3.1 on my old. On my new computer. I tried the original link and it no longer good. I tried my o