#18996 closed defect (invalid)
.profile not created & port command not found on leopard install
Reported by: | rmueller@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: |
Description
I am having trouble with my port install. Everything seemed to go smoothly: I downloaded and ran the .dmg for leopard and the installed claimed to be successful. When I go to run port, however, it seems to be missing. i.e.
[echidna:~] rmueller% sudo port -d selfupdate
Password:
sudo: port: command not found
[echidna:~] rmueller% man port
No manual entry for port
I have reviewed the online documentation enough to realize that my install is a bit "off." For one, I don't have a .profile created. Instead, I only see a .macports directory. (I don't have a .bash_login or .bash_profile either.)
I have macfuse installed with winXP pro., and I'm suspicious of this interfering with other programs. Could it have impacted this install too?
Can someone please help me figure out what I'm missing?
I'm not sure if this is a bug or not (high probability of user error), but since I got the "install successful" thumbs up, I'm thinking it may be a bug...?
Thanks!
Change History (14)
comment:1 Changed 16 years ago by blb@…
Component: | ports → base |
---|---|
Milestone: | Port Bugs → MacPorts Future |
comment:2 Changed 16 years ago by rmueller@…
Yes, I installed under my user. It's 1.7.0 for Leopard (Universal), from <http://www.macports.org/install.php>
I'm having a hard time opening install.log. In the terminal, I can go to /var/log, but when I "vi install.log" I get an error message that the file is too long. When I turn to the more user friendly "finder", I can't seem to locate /var/log. It's not under "Macintosh HD", where I would expect it to be. Is it hidden? If so, I don't see how to un-hide.
I am not too skilled with my mac yet. What am I missing?
comment:3 Changed 16 years ago by blb@…
/var/log (or more correctly /private/var/log) is a hidden-by-default location for Finder, so you have to use Go To Folder in Finder, and specify it from there.
comment:5 Changed 16 years ago by rmueller@…
Thanks. I found the information and included it below. There were many more instances of "macport" in this install log than what is shown below. In short, the install appears successful, and yet the port command isn't recognized. There was one error in regard to my shell environment that may be the culprit???
"Unknown shell (csh)! Please set your MacPorts compatible environment manually." (see below)
thoughts or ideas?
Mar 26 11:12:35 echidna Installer[5187]: Hardware: iMac8,1 @ 2.66 GHz (x 2), 4096 MB RAM Mar 26 11:12:35 echidna Installer[5187]: Running OS Build: Mac OS X 10.5.6 (9G55) Mar 26 11:12:35 echidna Installer[5187]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin Mar 26 11:12:35 echidna Installer[5187]: Env: TMPDIR=/var/folders/IP/IPEEZPf5FhSYek2kr4uL3U+++Is/-Tmp-/ Mar 26 11:12:35 echidna Installer[5187]: Env: SHELL=/bin/csh Mar 26 11:12:35 echidna Installer[5187]: Env: HOME=/Users/rmueller Mar 26 11:12:35 echidna Installer[5187]: Env: USER=rmueller Mar 26 11:12:35 echidna Installer[5187]: Env: LOGNAME=rmueller Mar 26 11:12:35 echidna Installer[5187]: Env: DISPLAY=/tmp/launch-XPEyGU/:0 Mar 26 11:12:35 echidna Installer[5187]: Env: SSH_AUTH_SOCK=/tmp/launch-BslzLb/Listeners Mar 26 11:12:35 echidna Installer[5187]: Env: Apple_PubSub_Socket_Render=/tmp/launch-OEho7I/Render Mar 26 11:12:35 echidna Installer[5187]: Env: __CF_USER_TEXT_ENCODING=0x14E:0:0 Mar 26 11:12:35 echidna Installer[5187]: Env: SECURITYSESSIONID=XXXXX Mar 26 11:12:35 echidna Installer[5187]: Env: COMMAND_MODE=unix2003 Mar 26 11:12:35 echidna Installer[5187]: MacPorts-1.7.0 Installation Log Mar 26 11:12:35 echidna Installer[5187]: Opened from: /Volumes/MacPorts-1.7.0/MacPorts-1.7.0.pkg Mar 26 11:12:38 echidna Installer[5187]: fileURLForURL = x-disc://MacPorts-1.7.0/MacPorts-1.7.0.pkg Mar 26 11:12:38 echidna Installer[5187]: fileURLForURL = file://localhost/Volumes/MacPorts-1.7.0/MacPorts-1.7.0.pkg Mar 26 11:12:38 echidna installdb[5189]: started (uid 96) Mar 26 11:12:38 echidna installdb[5189]: Opened receipt database on '/' with schema 17. Mar 26 11:12:44 echidna installdb[5189]: done. (0.006u + 0.005s) Mar 26 11:12:48 echidna installdb[5190]: started (uid 96) Mar 26 11:12:54 echidna installdb[5190]: done. (0.003u + 0.003s) Mar 26 11:13:39 echidna runner[5192]: Administrator authorization granted. Mar 26 11:13:39 echidna Installer[5187]: ================================================================================ Mar 26 11:13:39 echidna Installer[5187]: User picked Standard Install Mar 26 11:13:39 echidna Installer[5187]: Choices selected for installation: Mar 26 11:13:39 echidna Installer[5187]: Install: "MacPorts-1.7.0" Mar 26 11:13:39 echidna Installer[5187]: MacPorts-1.7.0.pkg : org.macports.MacPorts : 1.7.0.0.0 Mar 26 11:13:39 echidna Installer[5187]: ================================================================================ Mar 26 11:13:39 echidna Installer[5187]: It took 0.00 seconds to summarize the package selections. Mar 26 11:13:39 echidna Installer[5187]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (\n file://localhost\n) Mar 26 11:13:39 echidna Installer[5187]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost Mar 26 11:13:39 echidna Installer[5187]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Volumes/MacPorts-1.7.0/MacPorts-1.7.0.pkg Mar 26 11:13:39 echidna Installer[5187]: _installNextPackage of 1 Mar 26 11:13:39 echidna installdb[5195]: started (uid 96) Mar 26 11:13:39 echidna installdb[5195]: Opened receipt database on '/' with schema 17. Mar 26 11:13:39 echidna Installer[5187]: Starting installation: Mar 26 11:13:39 echidna Installer[5187]: Preparing volume "Macintosh HD" for installation Mar 26 11:13:39 echidna Installer[5187]: Configuring volume "Macintosh HD" Mar 26 11:13:40 echidna Installer[5187]: Preparing disk for local booted install. Mar 26 11:13:40 echidna Installer[5187]: Free space on "Macintosh HD": 212 GB (228123160576 bytes). Mar 26 11:13:40 echidna Installer[5187]: Create temporary directory "/private/tmp/MacPorts-1.7.0.pkg.5187CUxaII" Mar 26 11:13:40 echidna Installer[5187]: run preflight script for MacPorts-1.7.0 Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: /opt/local Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: /opt/local/var Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: /opt/local/var/macports Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: Mar 26 11:13:40: --- last message repeated 1 time --- Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: MacPorts installation successfully upgraded from the old DarwinPorts namespace! Mar 26 11:13:40 echidna runner[5192]: preflight[5196]: Mar 26 11:13:40: --- last message repeated 1 time --- Mar 26 11:13:40 echidna Installer[5187]: Processing MacPorts-1.7.0: Mar 26 11:13:40 echidna Installer[5187]: Determining files to install Mar 26 11:13:40 echidna Installer[5187]: It took 0.03 seconds to create the install plan for MacPorts-1.7.0. Mar 26 11:13:40 echidna Installer[5187]: Configuring deferred files Mar 26 11:13:40 echidna Installer[5187]: Assembling temporary receipt Mar 26 11:13:40 echidna Installer[5187]: Performing pre-extraction actions Mar 26 11:13:40 echidna Installer[5187]: Creating destination path Mar 26 11:13:40 echidna Installer[5187]: Validating package payload Mar 26 11:13:40 echidna Installer[5187]: Starting file extraction Mar 26 11:13:40 echidna pkgExtractor[5199]: Extracting... Mar 26 11:13:40 echidna pkgExtractor[5199]: 332 of 332 files written in 0.21 seconds. Mar 26 11:13:40 echidna pkgExtractor[5199]: 2224 kilobytes installed at 10.3 MB/s. Mar 26 11:13:40 echidna Installer[5187]: Performing post-extraction actions Mar 26 11:13:40 echidna Installer[5187]: Finishing receipt Mar 26 11:13:41 echidna Installer[5187]: run postflight script for MacPorts-1.7.0 Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: The MacPorts Project, postflight script version 1.7.0: checking the shell environment for user "rmueller". Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Removing old man pages... Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Done. Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Mar 26 11:13:41: --- last message repeated 1 time --- Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Unknown shell (csh)! Please set your MacPorts compatible environment manually. Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Synchronizing the MacPorts installation with the project's rsync server... Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Mar 26 11:13:44 echidna runner[5192]: postflight[5201]: Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/ Mar 26 11:13:44 echidna runner[5192]: postflight[5201]: Mar 26 11:13:45 echidna installdb[5195]: done. (0.004u + 0.003s) Mar 26 11:13:47 echidna runner[5192]: postflight[5201]: receiving file list ... done Mar 26 11:13:47 echidna runner[5192]: postflight[5201]:
... more macport entries, editing folders such as /X11, /src ...
Mar 26 11:14:33: --- last message repeated 1 time --- Mar 26 11:14:33 echidna runner[5192]: postflight[5201]: MacPorts base version 1.700 installed Mar 26 11:14:33 echidna runner[5192]: postflight[5201]: Downloaded MacPorts base version 1.700 Mar 26 11:14:33 echidna runner[5192]: postflight[5201]: Mar 26 11:14:33 echidna runner[5192]: postflight[5201]: The MacPorts installation is not outdated so it was not updated Mar 26 11:14:33 echidna runner[5192]: postflight[5201]: Mar 26 11:14:36 echidna runner[5192]: postflight[5201]: Successful! Mar 26 11:14:36 echidna runner[5192]: postflight[5201]: Mar 26 11:14:36 echidna Installer[5187]: Removing temporary directory "/private/tmp/MacPorts-1.7.0.pkg.5187CUxaII" Mar 26 11:14:36 echidna Installer[5187]: Finalize disk "Macintosh HD" Mar 26 11:14:36 echidna Installer[5187]: Notifying system of updated components Mar 26 11:14:37 echidna Installer[5187]: _installNextPackage of 0 Mar 26 11:14:37 echidna Installer[5187]: Mar 26 11:14:37 echidna Installer[5187]: **** Summary Information **** Mar 26 11:14:37 echidna Installer[5187]: Operation Elapsed time Mar 26 11:14:37 echidna Installer[5187]: ----------------------------- Mar 26 11:14:37 echidna Installer[5187]: script 55.82 seconds Mar 26 11:14:37 echidna Installer[5187]: zero 0.01 seconds Mar 26 11:14:37 echidna Installer[5187]: install 0.47 seconds Mar 26 11:14:37 echidna Installer[5187]: validate 0.00 seconds Mar 26 11:14:37 echidna Installer[5187]: os 0.00 seconds Mar 26 11:14:37 echidna Installer[5187]: extract 0.29 seconds Mar 26 11:14:37 echidna Installer[5187]: receipt 0.15 seconds Mar 26 11:14:37 echidna Installer[5187]: disk 1.01 seconds Mar 26 11:14:37 echidna Installer[5187]: config 0.03 seconds Mar 26 11:14:37 echidna Installer[5187]: Mar 26 11:14:37 echidna Installer[5187]: Starting installation: Mar 26 11:14:37 echidna Installer[5187]: Finalizing installation. Mar 26 11:14:37 echidna Installer[5187]: IFDInstallController 855E80 state = 5 Mar 26 11:14:37 echidna Installer[5187]: Displaying 'Install Succeeded' UI. Mar 26 11:26:27 echidna Software Update[5307]: JS: 10.5.6
comment:6 follow-up: 7 Changed 16 years ago by blb@…
Ah
Mar 26 11:13:41 echidna runner[5192]: postflight[5201]: Unknown shell (csh)! Please set your MacPorts compatible environment manually.
Currently the postflight script knows how to handle tcsh and bash (those being the most common shells for Mac OS X). For csh you'll need to update your PATH manually, by using
setenv PATH /opt/local/bin:/opt/local/sbin:$PATH
in your .cshrc.
comment:7 Changed 16 years ago by rmueller@…
I was away for a bit and now returning to this solution. Unfortunately, the problem is not solved. I changed my shell environment to tcsh but the port installation is still not recognized.
echidna:~ rmueller$ env | grep SHELL SHELL=/bin/tcsh echidna:~ rmueller$ man port No manual entry for port echidna:~ rmueller$ sudo port -d selfupdate Password: sudo: port: command not found echidna:~ rmueller$
The shell doesn't seem to be the problem. Any other suggestions? It doesn't make sense to me that I would need to reinstall the .dmg again (using tcsh), but perhaps I do?
Thanks ...
comment:8 Changed 16 years ago by rmueller@…
Just for fun, I tried the install again using the tcsh shell. Same story. I received the "Install Succeeded" thumbs up at the end of running the .pkg, but when I type $man port, the response remains: "No manual entry for port." I can try with bash, but this doesn't seem to be an environment issue.
comment:9 Changed 16 years ago by blb@…
comment:10 Changed 16 years ago 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!
comment:11 Changed 16 years ago by blb@…
With 1.7.1, if you use tcsh what it does is first look for a .tcshrc and if found, uses that; if you have a .cshrc instead, it'll use that; if neither is found, it falls back to .tcshrc. It works this way since that is the precedence rule for tcsh so makes the most sense.
Also, check your Terminal preferences, for 10.5's Terminal look at the Startup section and what the setting for 'Shells open with' happens to be, could it be launching bash instead of your normal shell?
comment:12 Changed 16 years ago by rmueller@…
Excellent! Now I'm cooking with gas. The startup in system preferences was set to bash. Thank you so much for the hand-holding! port seems to be up and running. :-)
comment:13 Changed 16 years ago by blb@…
Resolution: | → invalid |
---|---|
Status: | new → closed |
Glad to hear things are working.
comment:14 Changed 15 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future |
---|
Was your user the one you used to do the install? It should have created a .profile (even if you have other dotfiles); you can also check /var/log/install.log for info (search for MacPorts).
Also, just to make sure, this was MacPorts 1.7.0 right (1.6 had a bug that would act like this).