Hey Thanks a lot. Now it works. I dont know why it was not working earlier.
And jackson . I ran both the commands. root@vishnupc:/# /opt/local/bin/port-tclsh /opt/local/libexec/mpstats show Would submit the following data to http://stats.macports.neverpanic.de/submissions: { "id": "cc545acb-3f3b-4a93-afbd-8a72ef5e50b9", "os": { "macports_version": "2.4.99", "osx_version": "", "os_arch": "i386", "os_platform": "linux", "build_arch": "", "gcc_version": "5.4.0", "xcode_version": "none" }, "active_ports": [ {"name": "ncurses", "version": "6.1_0"}, {"name": "libedit", "version": "20170329-3.1_2"}, {"name": "mpstats", "version": "0.1.7_0", "requested": "true"} ], "inactive_ports": [] } root@vishnupc:/# /opt/local/bin/port-tclsh /opt/local/libexec/mpstats submit Submitting data to http://stats.macports.neverpanic.de/submissions ... Success. On 29 April 2018 at 07:29, Jeremy Lavergne <[email protected]> wrote: > There's one last thing to try regarding paths; that is to try invoking > the file this way: > /opt/local/bin/port-tclsh /opt/local/libexec/mpstats > > > If that doesn't work, it may lead to wondering if all of MacPorts is > installed properly. > > For example, I see you're using the root user: did we ensure that all > the file permissions were correct for when you're not the root user? Or > have you been using the root user exclusively? > > > On 04/28/2018 09:28 PM, Vishnu wrote: > > I dont think its about PATH. > > root@vishnupc:/# /opt/local/libexec/mpstats > > can't find package macports > > while executing > > "package require macports" > > (file "/opt/local/libexec/mpstats" line 42) > > root@vishnupc:/# echo $PATH > > /usr/local/sbin:/opt/local/bin:/usr/local/bin:/usr/sbin:/ > usr/bin:/sbin:/bin:/usr/games:/usr/local/games > > > > I tried all combinations of path. > > Didn't work. > > > > what does it mean exactly by macports package? > >
