#18996: .profile not created & port command not found on leopard install -------------------------------------------+-------------------------------- Reporter: rmueller@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts Future Component: base | Version: 1.7.0 Keywords: | Port: -------------------------------------------+-------------------------------- Comment(by rmueller@…): I had used the version given for Leopard install on the website, which was 1.7.0. By re-tracing my steps, I have now downloaded and installed 1.7.1. I also changed my shell environment to tcshrc yesterday, and both installs (from yesterday and today) created/appended the .tcshrc file. Incidentally, today's install backed up my previous .tcshrc file and appended it with {{{ MacPorts Installer addition on 2009-04-07_at_13:03:13: adding an appropriate PATH variable for use with MacPorts. setenv PATH /opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. }}} It seems as thought the default for the installer is just to put this into the .tcshrc file regardless as to whether or not it is already there (it assumes no prior install). I just deleted the duplicate occurrence. For some reason, "port" and "man port" are now working intermittently for reasons I don't understand. It must have to do with subtleties of my shell environment that are beyond my comprehension. My environment is as follows: {{{ MANPATH=/usr/share/man:/usr/local/share/man:/usr/local/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/usr/X11/man TERM_PROGRAM=Apple_Terminal TERM=xterm-color SHELL=/bin/tcsh TMPDIR=/var/folders/IP/IPEEZPf5FhSYek2kr4uL3U+++Is/-Tmp-/ Apple_PubSub_Socket_Render=/tmp/launch-O2TFpW/Render TERM_PROGRAM_VERSION=240 USER=rmueller COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-udLB8V/Listeners __CF_USER_TEXT_ENCODING=0x14E:0:0 PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin ... }}} My .tcshrc file looks like {{{ # MacPorts Installer addition on 2009-04-07_at_13:03:13: adding an appropriate PATH variable for use with MacPorts. setenv PATH /opt/local/bin:/opt/local/sbin:$PATH # Finished adapting your PATH environment variable for use with MacPorts. setenv MANPATH /opt/local/share/man:$MANPATH #added to use dselect program for fink (reccommended on fink website) setenv TERM xterm-color ## # Your previous /Users/rmueller/.tcshrc file was backed up as /Users/rmueller/.tcshrc.macports-saved_2009-04-08_at_07:23:57 ## }}} At first, when I added {{{ setenv MANPATH /opt/local/share/man:$MANPATH }}} to .tcshrc file, {{{ $man port }}} worked. Now it doesn't...again. {{{ echidna:~ rmueller$ man port No manual entry for port echidna:~ rmueller$ port -bash: port: command not found }}} Why "-bash" when I'm using tcsh?!?!?! In order to get port and man port to work, I need to rely on the command line: {{{ echidna:~ rmueller$ export PATH=/opt/local/bin:/opt/local/sbin:$PATH echidna:~ rmueller$ export MANPATH=/opt/local/share/man:$MANPATH echidna:~ rmueller$ man port echidna:~ rmueller$ port MacPorts 1.710 Entering interactive mode... ("help" for help, "quit" to quit) [Users/rmueller] > }}} The PATH command is in my .tchsrc file but doesn't seem to be recognized by my terminal even though the SHELL is .tcsh (confirmed by command line in terminal and by looking into my account preferences). Why??? I still don't have a .profile, but I think this is okay (i.e. .profile isn't needed for a tcsh shell, in which a .tcshrc file is used instead). Long story short (ha!): It seems as though I need to use command line to set the manpath and path each time I want to use port, which doesn't seem right. Why isn't the .tcshrc file being recognized? What do I need to do to make these changes to manpath and path more permanent? Thanks for the help! -- Ticket URL: <http://trac.macports.org/ticket/18996#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS