Re: The current status of git-annex

2015-04-23 Thread Peng Yu
On Sun, Apr 19, 2015 at 4:11 PM, Ryan Schmidt ryandes...@macports.org wrote:
 On Apr 19, 2015, at 4:09 PM, Peng Yu pengyu...@gmail.com wrote:

 I am not sure how to try a portfile. I just know to use `port install`
 to install packages.

 These instructions are supposed to help with that:

 https://guide.macports.org/#development.local-repositories

Can this be made simpler by just typing one command in the future?

 If they don't work let us know.







-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: [Haskell-beginners] Error when running `cabal install cabal-install`

2015-04-23 Thread Peng Yu
Indeed, I uninstalled libiconv by running the following command.

sudo port uninstall --follow-dependents libiconv

Then, `cabal install cabal-install` runs without a problem.

Hi MacPorts Users, Is there better solution to this problem? Please
see the original question regarding the conflict of MacPorts and
Haskell. (I don't what to use haskell from MacPorts as I want to keep
updated with the latest version of Haskell.)

https://mail.haskell.org/pipermail/beginners/2015-April/015214.html

On Thu, Apr 23, 2015 at 3:34 PM, Brandon Allbery allber...@gmail.com wrote:
 On Thu, Apr 23, 2015 at 4:19 PM, Peng Yu pengyu...@gmail.com wrote:

 It is installed from https://www.haskell.org/platform/

 . The OS is Mac OS X.


 Yes, as I suspected. The problem is that Apple ships an old version of the
 iconv library; MacPorts and Homebrew generally install a newer, incompatible
 one with symbols renamed to trigger that link error (because otherwise you
 find out about the mismatch when the first iconv call dumps core at
 runtime). You will need to arrange for ghc not to see that other iconv, only
 Apple's, since it won't work with any but Apple's. Or use a ghc from
 whichever package manager you have installed, so that it works with that
 package manager's iconv library.

 (This is more likely to happen with Homebrew, since most things don't look
 /opt/local but just about everything looks under /usr/local.)

 --
 brandon s allbery kf8nh   sine nomine associates
 allber...@gmail.com  ballb...@sinenomine.net
 unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net

 ___
 Beginners mailing list
 beginn...@haskell.org
 http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: [Haskell-beginners] Error when running `cabal install cabal-install`

2015-04-23 Thread Peng Yu
On Thu, Apr 23, 2015 at 7:39 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Apr 23, 2015, at 7:23 PM, Peng Yu pengyu...@gmail.com wrote:

 Long story short: Try
 $ cabal install --extra-include-dirs=/opt/local/include 
 --extra-lib-dirs=/opt/local/lib

 I tried it but it still shows the error messages.

 ~$ cabal install --extra-include-dirs=/opt/local/include
 --extra-lib-dirs=/opt/local/lib cabal-install

 Resolving dependencies...
 Configuring cabal-install-1.22.3.0...
 Failed to install cabal-install-1.22.3.0
 Build log ( /Users/py/.cabal/logs/cabal-install-1.22.3.0.log ):
 cabal: Error: some packages failed to install:
 cabal-install-1.22.3.0 failed during the configure step. The exception was:
 user error ('/usr/bin/ghc' exited with an error:

 You've installed ghc into /usr/bin? That's probably not a good idea. Prefix 
 /usr is only for the OS vendor to install software into.

This is what installed from the haskell installer. I agree this might
not be a good idea. But I have no control over it.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: [Haskell-beginners] Error when running `cabal install cabal-install`

2015-04-23 Thread Peng Yu
 Long story short: Try
  $ cabal install --extra-include-dirs=/opt/local/include 
 --extra-lib-dirs=/opt/local/lib

I tried it but it still shows the error messages.

~$ cabal install --extra-include-dirs=/opt/local/include
--extra-lib-dirs=/opt/local/lib cabal-install

Resolving dependencies...
Configuring cabal-install-1.22.3.0...
Failed to install cabal-install-1.22.3.0
Build log ( /Users/py/.cabal/logs/cabal-install-1.22.3.0.log ):
cabal: Error: some packages failed to install:
cabal-install-1.22.3.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
Undefined symbols for architecture x86_64:
_iconv, referenced from:
_hs_iconv in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure )
_iconv_close, referenced from:
_hs_iconv_close in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_close)
_iconv_open, referenced from:
_hs_iconv_open in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_open)
_locale_charset, referenced from:
_localeEncoding in libHSbase-4.7.0.1.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


The current status of git-annex

2015-04-19 Thread Peng Yu
Hi,

I notice this. But it seems that git-annex is still not available.
What is currently the best way to install git-annex on Mac OS X (w/o
home brew).

https://trac.macports.org/ticket/41466

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: The current status of git-annex

2015-04-19 Thread Peng Yu
I am not sure how to try a portfile. I just know to use `port install`
to install packages.

On Sun, Apr 19, 2015 at 2:38 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Apr 19, 2015, at 8:52 AM, Peng Yu wrote:

 I notice this. But it seems that git-annex is still not available.
 What is currently the best way to install git-annex on Mac OS X (w/o
 home brew).

 https://trac.macports.org/ticket/41466

 Leo attached a portfile to that ticket 11 days ago. Did you try it? If it 
 doesn't work for you, what problem did you encounter?




-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Am I supposed to use gem from MacPorts to install ruby packages in /opt/local/lib/ruby2.2/gems/2.2.0?

2015-03-20 Thread Peng Yu
Hi,

If I use gem to install ruby packages, they will be installed in
/opt/local/lib/ruby2.2/gems/2.2.0 by default. But I guess ruby
packages installed by MacPorts will also use this directory. So this
may cause some problem, is it so?

If so, what is the recommended way to install ruby packages via gem? Thanks.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Where are the manpages for llvm?

2015-01-04 Thread Peng Yu
I have llvm installed through MacPorts. But I don't see the manpages.
Are they available? Thanks.

~$ ll $(which lli)
lrwxr-xr-x 1 root admin 25 2015-01-04 10:38:14 /opt/local/bin/lli -
/opt/local/bin/lli-mp-3.4
~$ ll $(which llc)
lrwxr-xr-x 1 root admin 25 2015-01-04 10:38:14 /opt/local/bin/llc -
/opt/local/bin/llc-mp-3.4

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Problem with cssh

2014-10-12 Thread Peng Yu
Hi,

I get the following problem when running cssh. My mac is of version OS
X 10.9.5. Does anybody know what the problem is? Thanks.

$ cssh machine1 machine2
Can't connect to display `tmp/launch-KZPKti/org.macosforge.xquartz:0':
Invalid argument at
/opt/local/lib/perl5/vendor_perl/5.16.3/X11/Protocol.pm line 2270.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Where is google-test?

2014-08-04 Thread Peng Yu
Hi,

MacPorts used to have google-test. But it seems not available anymore.
Is there a replacement package for it? Thanks.

$ sudo port install google-test
Error: Port google-test not found

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Find which port a file is from?

2014-01-10 Thread Peng Yu
Hi,

I don't find a command that can show which port a file is from. This
function is available in apt-get on ubuntu, I guess similar things
should be available on macports. Could anybody let me know if there is
a way to do it? Thanks.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Why .gz files are not colored with `ls --color=auto`?

2013-12-02 Thread Peng Yu
Hi,

On ubuntu, `ls --color=auto` colors .gz files. But it (the one from
macports) does not .gz files on Mac. Does anybody know how to make it
color .gz files as well on mac? Thanks.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


sudo port install gdb problem

2013-12-01 Thread Peng Yu
Hi,

I see the following error message. Does anybody know what is wrong
with it and how to get it work? Thanks.

~$ sudo port install gdb
---  Cleaning gdb
---  Scanning binaries for linking errors: 100.0%
---  Found 14 broken file(s), matching files to ports
---  Found 1 broken port(s), determining rebuild order
---  Rebuilding in order
 arpack @3.1.2 +accelerate+gcc47+openmpi
Error: arpack: Variant openmpi conflicts with gcc47
Error: Unable to open port: Error evaluating variants
Error rebuilding arpack
while executing
error Error rebuilding $portname
(procedure revupgrade_scanandrebuild line 382)
invoked from within
revupgrade_scanandrebuild broken_port_counts $opts
(procedure macports::revupgrade line 5)
invoked from within
macports::revupgrade $opts
(procedure action_revupgrade line 2)
invoked from within
action_revupgrade $action $portlist $opts
(procedure action_target line 96)
invoked from within
$action_proc $action $portlist [array get global_options]
(procedure process_cmd line 93)
invoked from within
process_cmd $remaining_args
invoked from within
if { [llength $remaining_args]  0 } {

# If there are remaining arguments, process those as a command
set exit_status [process_cmd $remaining...
(file /opt/local/bin/port line 4857)

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


How to compile C++ is_pod?

2013-12-01 Thread Peng Yu
Hi,

http://www.cplusplus.com/reference/type_traits/is_pod/

I'm trying to compile the above code. But I get the following error.
Do I use the correct option for gcc-mp-4.7. Or there is some error
with my gcc-mp-4.7 installation? Thanks.

~/linux/test/cpp/cpp/library/type_traits/is_pod$ gcc-mp-4.7 -std=c++11
-o main main.cpp
Undefined symbols for architecture x86_64:
  std::basic_ostreamchar, std::char_traitschar
::operator(std::basic_ostreamchar, std::char_traitschar 
(*)(std::basic_ostreamchar, std::char_traitschar )), referenced
from:
  _main in ccSTl4KA.o
  std::basic_ostreamchar, std::char_traitschar
::operator(std::ios_base (*)(std::ios_base)), referenced from:
  _main in ccSTl4KA.o
  std::basic_ostreamchar, std::char_traitschar
::operator(bool), referenced from:
  _main in ccSTl4KA.o
  std::ios_base::Init::Init(), referenced from:
  __static_initialization_and_destruction_0(int, int) in ccSTl4KA.o
  std::ios_base::Init::~Init(), referenced from:
  __static_initialization_and_destruction_0(int, int) in ccSTl4KA.o
  std::cout, referenced from:
  _main in ccSTl4KA.o
  std::basic_ostreamchar, std::char_traitschar  std::endlchar,
std::char_traitschar (std::basic_ostreamchar,
std::char_traitschar ), referenced from:
  _main in ccSTl4KA.o
  std::basic_ostreamchar, std::char_traitschar  std::operator
std::char_traitschar (std::basic_ostreamchar,
std::char_traitschar , char const*), referenced from:
  _main in ccSTl4KA.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


What is boost_thread-mt?

2013-07-26 Thread Peng Yu
Hi,

I see the following files. I'm wondering why '-mt' is appended to the
file. I don't see such thing on ubuntu. I want to make the compilation
of some source code using libboost_thread compatible on both Mac and
Ubuntu. Does anybody know how to do it? Thanks.

/opt/local/lib/libboost_thread-mt.dylib
/opt/local/lib/libboost_thread-mt.a

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


mp-gcc47 problem

2013-06-28 Thread Peng Yu
Hi,

I run the following command. But I got an error for gcc. Does anybody
know what is wrong? Thanks.

~$ sudo port select --set gcc mp-gcc47
Selecting 'mp-gcc47' for 'gcc' succeeded. 'mp-gcc47' is now active.
~$ ls -l $(which gcc)
lrwxr-xr-x 1 root admin 25 Jun 28 15:09 /opt/local/bin/gcc -
/opt/local/bin/gcc-mp-4.7
~$ gcc --version
gcc-mp-4.7: error trying to exec
'/opt/local/bin/i686-apple-darwin11-llvm-gcc-4.2': execvp: No such
file or directory
~$ g++ --version
g++ (MacPorts gcc47 4.7.3_0) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


How to use reduce-algebra?

2013-06-18 Thread Peng Yu
Hi,

I get the following error when I try to run redpsl. Does anybody know
what is wrong with it? Thanks.

~$ redpsl
Failed to find a version of bpsl that you have built
try ./configure --with-psl; make to build one.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


ggv error

2013-06-15 Thread Peng Yu
Hi,

I got the following error when I try to open a ps file. Does anybody
know what is wrong?

~/Downloads$ ggv  93-1342.ps
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: launchd did not provide a
socket path, verify that org.freedesktop.dbus-session.plist is loaded!
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid
Dynamic session lookup supported but failed: Unable to find launchd
socket when setuid

(ggv:53538): GGV-WARNING **: Could not get GGV control: 'Unknown CORBA
exception id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0''

(ggv:53538): GGV-WARNING **: Failed to create a new window.

(ggv:53538): GGV-WARNING **: No windows could be opened. Exiting...

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: ggv error

2013-06-15 Thread Peng Yu
 Make sure you've followed the instructions given in the dbus notes.

 % port notes dbus

I've run the commands shown in the output of the above command. But I
still get errors.

~/Downloads$ ggv 10.1.1.52.997.ps

(ggv:64210): GGV-WARNING **: Could not get GGV control: 'Unknown CORBA
exception id: 'IDL:omg.org/CORBA/COMM_FAILURE:1.0''

(ggv:64210): GGV-WARNING **: Failed to create a new window.

(ggv:64210): GGV-WARNING **: No windows could be opened. Exiting...

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Where is man octave installed?

2013-05-21 Thread Peng Yu
Hi,

I have octave installed through macports. But I don't find its man
page. Does anybody know where it is?

~$ octave --version
GNU Octave, version 3.6.4
Copyright (C) 2013 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.

Octave was configured for x86_64-apple-darwin12.3.0.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Where is man octave installed?

2013-05-21 Thread Peng Yu
 You can list the files owned by a port using port contents.

 % port contents octave

I don't find the manpage. Should there be a manpage for octave?

~$ port contents octave-devel | grep 'octave\.[0-9]'
  /opt/local/lib/octave/3.6.4/liboctave.1.dylib


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


How to revert to the default autoconf?

2013-05-15 Thread Peng Yu
Hi,

I want to temporarily revert to the default autoconf and other tools
(e.g., autom4e). Could anybody let me know what is the correct way to
revert the default without having to uninstall autoconf from macports?
Thanks.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Correct crontab entry for port selfupdate port upgrade outdated

2013-04-30 Thread Peng Yu
Hi Arno,

I see the following error in the log. Where is portsign.sh? What is it
for? Thanks.

/usr/local/bin/periodic-port.sh: line 43: /usr/local/bin/portsign.sh:
No such file or directory


On Sat, Apr 27, 2013 at 9:47 PM, Arno Hautala a...@alum.wpi.edu wrote:
 The basics are that the shell script goes in /usr/local/bin (or
 anywhere else really, just make sure you edit the plist to point to
 where the script is). The plist goes in `/Library/LaunchDaemons/`,
 should be owned by root:admin and have 644 permissions. You can then
 load the service with: `launchctl load
 /Library/LaunchDaemons/org.macports.port.selfupdate.plist` and stop
 the service with unload instead of load.

 For detailed info, read this:
 http://web.archive.org/web/20120415040038/http://www.afp548.com/article.php?story=20050620071558293

 On Sat, Apr 27, 2013 at 10:21 PM, Peng Yu pengyu...@gmail.com wrote:
 Hi,

 Where should I put these files and what commands shall be used to load them?

 On Sat, Apr 27, 2013 at 8:55 PM, Arno Hautala a...@alum.wpi.edu wrote:
 I use the following launchd task [1] and shell script [2] to automate
 weekly updates.

 You can remove the reference to portsign.sh, unless you want to
 share your compiled ports with another MacPorts installation [3].

 [1]: https://gist.github.com/fracai/2324512
 [2]: https://gist.github.com/fracai/2324493
 [3]: https://trac.macports.org/wiki/howto/ShareArchives2


 On Sat, Apr 27, 2013 at 5:55 PM, Clemens Lang c...@macports.org wrote:
 On Sat, Apr 27, 2013 at 04:16:50PM -0500, Ryan Schmidt wrote:
 And running MacPorts via root instead of via sudo will currently cause 
 some problems:

 http://trac.macports.org/ticket/34221

 You could use the workaround I proposed in
   
 https://lists.macosforge.org/pipermail/macports-dev/2013-April/022725.html
 (the mail is a reply to a mail that seems to have been moderated from
 the list, which is the reasons why it seems to be lacking some context)

 --
 Clemens Lang

 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users



 --
 arno  s  hautala/-|   a...@alum.wpi.edu

 pgp b2c9d448
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users



 --
 Regards,
 Peng



 --
 arno  s  hautala/-|   a...@alum.wpi.edu

 pgp b2c9d448



-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Correct crontab entry for port selfupdate port upgrade outdated

2013-04-27 Thread Peng Yu
Hi,

I have the following crontab entry
/tmp$ sudo crontab -l
0 1 * * * sudo nice /opt/local/bin/bash -c set -v; ((echo '== port
selfupdate =='; /opt/local/bin/port selfupdate)  (echo '== port
upgrade outdated =='; /opt/local/bin/port upgrade outdated))
/tmp/portupdate.log 21

But I always see the following error message.

/tmp$ cat portupdate.log
== port selfupdate ==
---  Updating MacPorts base sources using rsync
Error: /opt/local/bin/port: port selfupdate failed: Error
synchronizing MacPorts sources: command execution failed


When I try to run manual port install, I see the following error
message, which can be resolved by run 'sudo killall tclsh'.

Waiting for lock on /opt/local/var/macports/registry/.registry.lock

Does anybody know what is the correct way to set macports update automatically?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Correct crontab entry for port selfupdate port upgrade outdated

2013-04-27 Thread Peng Yu
Hi,

Where should I put these files and what commands shall be used to load them?

On Sat, Apr 27, 2013 at 8:55 PM, Arno Hautala a...@alum.wpi.edu wrote:
 I use the following launchd task [1] and shell script [2] to automate
 weekly updates.

 You can remove the reference to portsign.sh, unless you want to
 share your compiled ports with another MacPorts installation [3].

 [1]: https://gist.github.com/fracai/2324512
 [2]: https://gist.github.com/fracai/2324493
 [3]: https://trac.macports.org/wiki/howto/ShareArchives2


 On Sat, Apr 27, 2013 at 5:55 PM, Clemens Lang c...@macports.org wrote:
 On Sat, Apr 27, 2013 at 04:16:50PM -0500, Ryan Schmidt wrote:
 And running MacPorts via root instead of via sudo will currently cause some 
 problems:

 http://trac.macports.org/ticket/34221

 You could use the workaround I proposed in
   https://lists.macosforge.org/pipermail/macports-dev/2013-April/022725.html
 (the mail is a reply to a mail that seems to have been moderated from
 the list, which is the reasons why it seems to be lacking some context)

 --
 Clemens Lang

 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users



 --
 arno  s  hautala/-|   a...@alum.wpi.edu

 pgp b2c9d448
 ___
 macports-users mailing list
 macports-users@lists.macosforge.org
 https://lists.macosforge.org/mailman/listinfo/macports-users



-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Is man from man-db available?

2013-04-03 Thread Peng Yu
Hi,

It seems that /opt/local/bin/man is not same as man on linux (which is
from man-db). Is there a way to install man from man-db by macports?

http://www.nongnu.org/man-db/

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


macports on linux

2013-04-01 Thread Peng Yu
Hi,

Linux packages are usually outdated. Since macports are usually
updated, is there a way to install macports on linux (e.g. ubuntu).

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


How to let g++ search for library directory /opt/local/lib/

2013-03-16 Thread Peng Yu
Hi,

g++ does not search /opt/local/lib/ by default. Does anybody know how
to let it search /opt/local/lib/ by default?

~/linux/test/cpp/library/pcrecpp$ port select gcc
Available versions for gcc:
apple-gcc42 (active)
llvm-gcc42
mp-gcc45
mp-gcc47
none
~/linux/test/cpp/library/pcrecpp$ g++ main.o -lpcrecpp  -o main
-L/opt/local/lib/
~/linux/test/cpp/library/pcrecpp$ g++ main.o -lpcrecpp  -o main
ld: library not found for -lpcrecpp
collect2: ld returned 1 exit status

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: How to let g++ search for library directory /opt/local/lib/

2013-03-16 Thread Peng Yu
 You should activate one of the MacPorts compilers instead of the apple
 version.  mp-gcc47 and mp-gcc45 should automatically search in
 /opt/local/lib for libraries.

~/linux/test/cpp/library/pcrecpp$ sudo port select gcc mp-gcc45
Selecting 'mp-gcc45' for 'gcc' succeeded. 'mp-gcc45' is now active.
~/linux/test/cpp/library/pcrecpp$ g++ main.o  -lpcrecpp  -o main
g++-mp-4.5: error trying to exec
'/opt/local/bin/i686-apple-darwin11-llvm-g++-4.2': execvp: No such
file or directory

I get the above error. Does anybody know what is wrong?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Source code of /opt/local/bin/getopt

2013-03-15 Thread Peng Yu
Hi,

I'm interested in see the source code for /opt/local/bin/getopt.
Could anybody show me how to locate the source code of an executable
in macports? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


select default pip

2012-12-30 Thread Peng Yu
Hi,

I'm wondering if there is a way to select the default pip. It has been
asked here. But I don't see a solution to the problem yet. Thanks!

http://trac.macports.org/ticket/36178

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Periodic macports update

2012-12-28 Thread Peng Yu
Hi,

I have the following crontab entry.

~$ sudo crontab -l
Password:
* 1 * * * bash -c /opt/local/bin/port selfupdate; /opt/local/bin/port
upgrade outdated 1/tmp/portupdate_out.log 2/tmp/portupdate_err.log

But it seems not working properly, as I always get an error like the
following after the scheduled time of the crontab entry.

~$ sudo port upgrade tk
Waiting for lock on /opt/local/var/macports/registry/.registry.lock

I also notice that launchd succeed crontab on mac OS X. So it might be
better to avoid launchd.

Does anybody have some example on how to setup up port selfupdate
and port upgrade outdated run periodically (say once a day)? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Periodic macports update

2012-12-28 Thread Peng Yu
On Fri, Dec 28, 2012 at 2:20 PM, Lawrence Velázquez
larry.velazq...@gmail.com wrote:
 On Dec 28, 2012, at 10:07 AM, Peng Yu pengyu...@gmail.com wrote:

 I also notice that launchd succeed crontab on mac OS X. So it might be
 better to avoid launchd.

 I don't quite follow this logic.

Sorry. I meant it might be better to use launchd.


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: sudo port install tk -quartz problem (related with pymol)

2012-12-27 Thread Peng Yu
On Wed, Dec 26, 2012 at 8:30 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Dec 26, 2012, at 20:29, Peng Yu wrote:

 On Wed, Dec 26, 2012 at 8:26 PM, Ryan Schmidt wrote:

 On Dec 26, 2012, at 20:22, Peng Yu wrote:

 On Wed, Dec 26, 2012 at 7:22 PM, Ryan Schmidt wrote:

 Yeah that's weird... for the record I don't see this problem on my 
 system. So if you still see this problem after a rebuild, please attach a 
 log of the build to the ticket.

 What the path of the log file I'm suppose to post?

 The location of the logfile is printed by the command:

 port logfile tk

 I don't find it.

 ~$ port logfile tk
 Error: Log file not found for port in
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/tk

 Explained in:

 https://trac.macports.org/ticket/37395#comment:7

I don't get what the solution is to this problem? (BTW, I have
attached the log file to the ticket system.)

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: sudo port install tk -quartz problem (related with pymol)

2012-12-26 Thread Peng Yu
On Wed, Dec 26, 2012 at 2:52 AM, Clemens Lang c...@macports.org wrote:
 Hi,

 On Tue, Dec 25, 2012 at 11:26:17PM -0600, Peng Yu wrote:
 Could not open /opt/local/lib:/opt/local/lib/libtk8.6.dylib: Error
 opening or reading file (referenced from /opt/local/bin/wish8.6)
 DEBUG: Marking /opt/local/bin/wish8.6 as broken

 what's the output of otool -L /opt/local/bin/wish8.6?

Here is the output.

$ otool -L /opt/local/bin/wish8.6
/opt/local/bin/wish8.6:
/opt/local/lib/libfontconfig.1.dylib (compatibility version 8.0.0,
current version 8.2.0)
/opt/local/lib:/opt/local/lib/libtk8.6.dylib (compatibility version
8.6.0, current version 8.6.0)
/opt/local/lib/libtcl8.6.dylib (compatibility version 8.6.0, current
version 8.6.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 169.3.0)

/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
(compatibility version 150.0.0, current version 744.12.0)
/opt/local/lib/libXft.2.dylib (compatibility version 6.0.0, current
version 6.1.0)
/opt/local/lib/libX11.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
/opt/local/lib/libXss.1.dylib (compatibility version 2.0.0, current
version 2.0.0)
/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.7)


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: sudo port install tk -quartz problem (related with pymol)

2012-12-26 Thread Peng Yu
On Wed, Dec 26, 2012 at 7:22 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Dec 26, 2012, at 18:30, Clemens Lang c...@macports.org wrote:

 On Wed, Dec 26, 2012 at 08:19:23AM -0600, Peng Yu wrote:
 $ otool -L /opt/local/bin/wish8.6
  /opt/local/lib:/opt/local/lib/libtk8.6.dylib (compatibility version 
 8.6.0, current version 8.6.0)

 That's the problem. The part before (and including) the colon shouldn't
 be there. This might be a bug in the port; please file a ticket.

 Yeah that's weird... for the record I don't see this problem on my system. So 
 if you still see this problem after a rebuild, please attach a log of the 
 build to the ticket.

What the path of the log file I'm suppose to post?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: sudo port install tk -quartz problem (related with pymol)

2012-12-26 Thread Peng Yu
On Wed, Dec 26, 2012 at 8:26 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Dec 26, 2012, at 20:22, Peng Yu wrote:

 On Wed, Dec 26, 2012 at 7:22 PM, Ryan Schmidt wrote:

 Yeah that's weird... for the record I don't see this problem on my system. 
 So if you still see this problem after a rebuild, please attach a log of 
 the build to the ticket.

 What the path of the log file I'm suppose to post?

 The location of the logfile is printed by the command:

 port logfile tk

I don't find it.

~$ port logfile tk
Error: Log file not found for port in
/opt/local/var/macports/sources/rsync.macports.org/release/ports/x11/tk

 Attach it to this ticket:

 https://trac.macports.org/ticket/37395






-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: sudo port install tk -quartz problem (related with pymol)

2012-12-25 Thread Peng Yu
On Mon, Dec 24, 2012 at 10:04 PM, Clemens Lang c...@macports.org wrote:
 Hi,

 Quote: Please run port -d -y rev-upgrade and use the output to report a bug.

 Please post the output of the command mentioned.

Here are the output. Let me know if there is anything else that I shall provide.

DEBUG: skipping ppc in
/Applications/MacPorts/sshfs.app/Contents/Resources/sshnodelay.so
since this system can't run it anyway
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/bin/wineserver
DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/bin/wmc
DEBUG: Ignoring loadcommand containing @executable_path in /opt/local/bin/wrc
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/acledit.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/aclui.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/activeds.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/actxprxy.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/advapi32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/advpack.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/amstream.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/apphelp.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/appwiz.cpl.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/aspnet_regiis.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/atl.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/attrib.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/authz.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/avicap32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/avifil32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/avifile.dll16.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/avrt.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/bcrypt.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/browseui.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cabarc.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cabinet.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cacls.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/capi2032.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cards.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cfgmgr32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/clock.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/clusapi.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cmd.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/comcat.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/comctl32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/comdlg32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/comm.drv16.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/commdlg.dll16.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/compobj.dll16.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/compstui.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/control.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/credui.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/crtdll.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/crypt32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cryptdlg.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cryptdll.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cryptnet.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cryptui.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/cscript.exe.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/ctapi32.dll.so
DEBUG: Ignoring loadcommand containing @executable_path in
/opt/local/lib/wine/ctl3d.dll16.so
DEBUG: Ignoring 

How to install opengl using macports?

2012-12-24 Thread Peng Yu
Hi,

GL/glew.h

I needs to have the above file installed, which I think is from
OpenGL. Is mesa suppose to have the above file?

I have the following ports installed. But I don't find GL/glew.h. Does
anybody know which port I should install?

The following ports are currently installed:
  mesa @8.0.4_0+python27+universal
  mesa @8.0.4_1+python27+universal
  mesa @8.0.4_2+python27 (active)

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Why pip does not use gcc and g++ automatically? (Mountain Loin)

2012-10-19 Thread Peng Yu
On Fri, Oct 19, 2012 at 5:09 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Oct 19, 2012, at 16:31, Peng Yu wrote:

 I have the following ports installed and I setup virtualenv correctly.

 sudo port -v install python27
 port select python python27

 sudo port install py27-pip
 sudo port install py27-virtualenv
 sudo port install py27-virtualenvwrapper

 But when I install a package within a virtual environment, I have to
 explicit specify the compiler as the following. Otherwise clang or
 clang++ will be used and the installation will yield error. Is it
 because macports was compiled by clang and clang++. Is there a way to
 that pip use g++/gcc as the default?

 CXX=g++ CC=gcc FFLAGS=-ff2c pip install scipy

 There is *no* gcc in Xcode 4.2 and later. In those versions of Xcode, the 
 programs gcc and g++ are *not* gcc; they are symlinks to llvm-gcc-4.2 and 
 llvm-g++-4.2.

 If a port does not compile correctly with clang, that is a bug and you should 
 file a bug report in our issue tracker. It wasn't clear to me from what you 
 wrote above what MacPorts port was not compiling properly with clang. It 
 sounded like maybe you were talking about software that you install manually, 
 not using a port. If so, take the matter up with the developers of that 
 software.

What I did was the following (besides installing the port packages as
shown in the first email).


mkdir $HOME/.virtualenvs

Add the following to ~/.bashrc

export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=/opt/local/bin/virtualenv-2.7
. /opt/local/bin/virtualenvwrapper.sh-2.7

source ~/.bashrc

mkvirtualenv --distribute py

workon py

You will see a prompt (py)

Under (py), run 'CXX=g++ CC=gcc FFLAGS=-ff2c pip install scipy'. It
will finish successfully. If you just run 'pip install scipy', it will
fail (I have closed the window, so I can not show the error message).

My understanding is these python packages assume gcc but not clang,
some options available to gcc are not available to clang. So it cause
errors if clang is used. Would you please take a look if you can
reproduce the same problem?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Why pip does not use gcc and g++ automatically? (Mountain Loin)

2012-10-19 Thread Peng Yu
 There are py27-* ports among which is py27-scipy. Is py27-scipy what you are 
 wanting?

 $ port echo name:^py27-

I deliberately avoid using macports for installing packages as they
are not always up to date and some packages are missing. See more
discussion here for the usage of virtualenv.

http://old.nabble.com/Can-pip-be-used-to-install-python-packages--td34575228.html


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Can pip be used to install python packages?

2012-10-18 Thread Peng Yu
Hi,

I remember it used to be the case that python packages has to be
installed by port. But the problem is that python packages from
macports are not very updated.

Since there is py27-pip, can I use pip to install python packages so I
can have the latest packages from http://pypi.python.org/pypi?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


port fuse4x-kext error

2012-09-11 Thread Peng Yu
Hi,

I see the following error message. I'm installing  fuse4x-kext. Does
anybody know what the problem is?

~$ cat 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fuse4x-kext/fuse4x-kext/main.log
version:1
:debug:build changing euid/egid - current euid: 0 - current egid: 0
:debug:build egid changed to: 502
:debug:build euid changed to: 504
:debug:main Executing org.macports.main (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.archivefetch (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (fuse4x-kext)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Sep 11 09:16:28 CDT 2012
:notice:build ---  Building fuse4x-kext
:debug:build Executing org.macports.build (fuse4x-kext)
:debug:build Assembled command: 'cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fuse4x-kext/fuse4x-kext/work/fuse4x-kext-0.9.1
 /usr/bin/xcodebuild  -alltargets -configuration Release build
OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.8
ARCHS=x86_64 i386 SDKROOT=
GCC_VERSION=com.apple.compilers.llvm.clang.1_0 '
:info:build
:info:build You have not agreed to the Xcode license agreements,
please run 'xcodebuild -license' (for user-level acceptance) or 'sudo
xcodebuild -license' (for system-wide acceptance) from within a
Terminal window to review and agree to the Xcode license agreements.
:info:build Command failed: cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fuse4x-kext/fuse4x-kext/work/fuse4x-kext-0.9.1
 /usr/bin/xcodebuild  -alltargets -configuration Release build
OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.8
ARCHS=x86_64 i386 SDKROOT=
GCC_VERSION=com.apple.compilers.llvm.clang.1_0
:info:build Exit code: 69
:error:build org.macports.build for port fuse4x-kext returned: command
execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
while executing
$procedure $targetname
:info:build Warning: targets not executed for fuse4x-kext:
org.macports.activate org.macports.build org.macports.destroot
org.macports.install
:error:build Failed to install fuse4x-kext
:debug:build Registry error: fuse4x-kext not registered as installed  active.
invoked from within
registry_active ${subport}
invoked from within
$workername eval registry_active \${subport}
:notice:build Please see the log file for port fuse4x-kext for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_fuse_fuse4x-kext/fuse4x-kext/main.log

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


samtools build error

2012-09-11 Thread Peng Yu
Hi,

I got the following error when I install samtools, which I don't quite
understand what the problem is and how to fix it. Could anybody let me
know? Thanks!

~$ cat 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_samtools/samtools/main.log
version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main zlib 1.2.7_0 exists in the ports tree
:debug:main zlib 1.2.7_0 +universal is the latest installed
:debug:main zlib 1.2.7_0 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/archivers/zlib
:debug:main OS darwin/12.1.0 (Mac OS X 10.8) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/xcodeversion-1.0.tcl
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! zlib 1.2.7_0 = zlib 1.2.7_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 5.9_1 exists in the ports tree
:debug:main ncurses 5.9_1 +universal is the latest installed
:debug:main ncurses 5.9_1 +universal is active
:debug:main Merging existing variants '+universal' into variants
:debug:main new fully merged portvariants: universal +
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
:debug:main OS darwin/12.1.0 (Mac OS X 10.8) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Executing variant universal provides universal
:debug:main No need to upgrade! ncurses 5.9_1 = ncurses 5.9_1
:msg:main ---  Computing dependencies for samtools:info:main
.:debug:main samtools has no conflicts
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:msg:main
:debug:main Executing org.macports.main (samtools)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 502
:debug:main euid changed to: 504
:debug:main Skipping completed org.macports.archivefetch (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (samtools)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Sep 11 10:44:58 CDT 2012
:notice:build ---  Building samtools
:debug:build Executing org.macports.build (samtools)
:debug:build Environment: CPATH='/opt/local/include'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_samtools/samtools/work/.CC_PRINT_OPTIONS'
LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES'
MACOSX_DEPLOYMENT_TARGET='10.8'
:debug:build Assembled command: 'cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_science_samtools/samtools/work/samtools-0.1.17
 /usr/bin/make -j8 -w all CC=/usr/bin/clang CFLAGS=-g -Wall -O2
-arch x86_64'
:debug:build Executing command line:  cd

Installing ports in parallel

2012-09-11 Thread Peng Yu
Hi,

I don't find a way to let port install multiple independent ports in
parallel to maximally use the cores on a machine. Is there a way to do
so? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: Installing ports in parallel

2012-09-11 Thread Peng Yu
On Tue, Sep 11, 2012 at 12:50 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Sep 11, 2012, at 11:57, Peng Yu pengyu...@gmail.com wrote:

 I don't find a way to let port install multiple independent ports in
 parallel to maximally use the cores on a machine. Is there a way to do
 so? Thanks!

 This used to be allowed (unintentionally, I think) and would sometimes work, 
 as long as the ports you were installing were truly independent of one 
 another (including their complete dependency chains). But as soon as you 
 started trying to do simultaneous port installs where parts of the dependency 
 chains overlapped, and some of those overlapping dependencies were outdated 
 or not installed yet, things did not work. Confusing error messages were 
 printed that users often did not understand.

 We fixed the problem a few versions of MacPorts by introducing a lock 
 mechanism that ensures that you can only install one port at a time. I miss 
 the parallel install capability we used to have, but appreciate that this 
 reduces the number of confusing problems our users could encounter, and thus 
 decreases the number of problem reports we receive, which frees up our time 
 to work on more interesting problems.

There are many tools out there to handle dependencies for compiling
software and for many other purpose as well. For example, GNU make,
cmake, ant, maven, etc. I think that there should be (at least
theoretically) some way of harness some of these tools to handle
parallel builds of multiple ports even if they share dependency
chains. Whether it is easy to implement is another issue and I don't
know the answer.

My inclination is that the feature that I request can be useful. As I
can port using binaries for only a very small fraction of ports.
Enabling parallel port can truly use all the cores to speed the
process. Recently, I just migrate from Snow Leopard to Mountain Loin,
It took almost 8 hours for me to completely install what had been
previously installed. There should be something done to improve this
process.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Update ocatve to the latest version

2012-08-24 Thread Peng Yu
Hi,

The current octave version is fairly old, considering that the current
release is of version 3.6.2. Is there a reason that prevents the
update to a more recent version of octave? Thanks!

~$ port search octave
octave @3.2.4 (math, science)
a Matlab-like environment for numerical analysis

http://www.gnu.org/software/octave/download.html
 GNU Octave 3.6.2 was released May 31, 2012.

--
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Which compiler to use with boost thread

2012-08-24 Thread Peng Yu
Hi,

/tmp$ port info boost
boost @1.50.0 (devel)
Variants: debug, [+]no_single, [+]no_static, openmpi,
python25, python26, python27, python31, python32, regex_match_extra,
universal

Description:  Boost provides free portable peer-reviewed C++
libraries. The emphasis is on portable libraries which work well with
the C++ Standard Library.
Homepage: http://www.boost.org

Library Dependencies: zlib, expat, bzip2, libiconv, icu
Platforms:darwin
License:  Boost-1
Maintainers:  adfernan...@macports.org

I have the above boost installed and I find the following library file
installed. But I'm not sure which g++ shall be used with these
libraries. Could anybody let me know how to figure it out? Thanks!

/opt/local/lib/libboost_thread-mt.dylib
/opt/local/lib/libboost_thread-mt.a

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


terminate installation by ctrl+C

2012-08-15 Thread Peng Yu
Hi,

I started a 'port install' process, which takes long, and I want to
terminate it by typing ctrl+C. Is it a safe operation? Or it is better
to just wait to avoid corrupting macports? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


How to install doclifter without changing the default python?

2012-08-13 Thread Peng Yu
Hi,

I got the following error. python26 is selected. But I use a different
installation of python. Is there a way to install doclifter without
changing the default python on my system?

~$ portinstall.sh doclifter
Password:
---  Computing dependencies for doclifter
---  Dependencies to be installed: python26
---  Fetching archive for python26
---  Attempting to fetch python26-2.6.8_0.darwin_10.x86_64.tbz2 from
http://packages.macports.org/python26
---  Attempting to fetch
python26-2.6.8_0.darwin_10.x86_64.tbz2.rmd160 from
http://packages.macports.org/python26
---  Installing python26 @2.6.8_0
---  Activating python26 @2.6.8_0

To make python 2.6 the default (i.e. the version you get when you run
'python'), please run:

sudo port select --set python python26

---  Cleaning python26
---  Fetching archive for doclifter
---  Attempting to fetch doclifter-2.3_1.darwin_10.x86_64.tbz2 from
http://packages.macports.org/doclifter
---  Attempting to fetch doclifter-2.3_1.darwin_10.x86_64.tbz2 from
http://macports.packages.ionic.de/doclifter
Error: org.macports.archivefetch for port doclifter returned:
archivefetch failed for doclifter @2.3_1
Please see the log file for port doclifter for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_doclifter/doclifter/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port doclifter failed
~$ portselect.sh python
Available versions for python:
none
python25-apple
python26 (active)
python26-apple
python27
~$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Re: How to install doclifter without changing the default python?

2012-08-13 Thread Peng Yu
On Mon, Aug 13, 2012 at 12:37 PM, Lawrence Velázquez
larry.velazq...@gmail.com wrote:
 On Aug 13, 2012, at 10:29 a.m., Peng Yu wrote:

 ---  Fetching archive for doclifter
 ---  Attempting to fetch doclifter-2.3_1.darwin_10.x86_64.tbz2 from
 http://packages.macports.org/doclifter
 ---  Attempting to fetch doclifter-2.3_1.darwin_10.x86_64.tbz2 from
 http://macports.packages.ionic.de/doclifter
 Error: org.macports.archivefetch for port doclifter returned:
 archivefetch failed for doclifter @2.3_1

 I'm not sure this has anything to do with python26. MacPorts can't fetch the 
 archive for some reason.

 Please see the log file for port doclifter for details:

 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_doclifter/doclifter/main.log

 Please show us this log.

Here you are.
~$ cat   
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_doclifter/doclifter/main.log
version:1
:msg:main ---  Computing dependencies for doclifter:info:main
.:debug:main doclifter has no conflicts
:debug:main Searching for dependency: python26
:debug:main Didn't find receipt, going to depspec regex for: python26
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/python26
:debug:main OS darwin/10.8.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/select-1.0.tcl
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:info:main .:debug:main python26 has no conflicts
:debug:main Searching for dependency: gettext
:debug:main Found Dependency: receipt exists for gettext
:debug:main Searching for dependency: zlib
:debug:main Found Dependency: receipt exists for zlib
:debug:main Searching for dependency: openssl
:debug:main Found Dependency: receipt exists for openssl
:debug:main Searching for dependency: sqlite3
:debug:main Found Dependency: receipt exists for sqlite3
:debug:main Searching for dependency: db46
:debug:main Found Dependency: receipt exists for db46
:debug:main Searching for dependency: ncurses
:debug:main Found Dependency: receipt exists for ncurses
:debug:main Searching for dependency: bzip2
:debug:main Found Dependency: receipt exists for bzip2
:debug:main Searching for dependency: libedit
:debug:main Found Dependency: receipt exists for libedit
:debug:main Searching for dependency: python_select
:debug:main Found Dependency: receipt exists for python_select
:msg:main
:msg:main ---  Dependencies to be installed: python26
:debug:main Starting logging for python26
:debug:main Executing org.macports.main (doclifter)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 502
:debug:main euid changed to: 504
:debug:archivefetch archivefetch phase started at Mon Aug 13 09:23:30 CDT 2012
:msg:archivefetch ---  Fetching archive for doclifter
:debug:archivefetch Executing org.macports.archivefetch (doclifter)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 504/502
:info:archivefetch ---  doclifter-2.3_1.darwin_10.x86_64.tbz2 doesn't
seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch ---  Attempting to fetch
doclifter-2.3_1.darwin_10.x86_64.tbz2 from
http://packages.macports.org/doclifter
:debug:archivefetch Fetching archive failed:: The requested URL
returned error: 404
:msg:archivefetch ---  Attempting to fetch
doclifter-2.3_1.darwin_10.x86_64.tbz2 from
http://macports.packages.ionic.de/doclifter
:debug:archivefetch Fetching archive failed:: The requested URL
returned error: 404
:error:archivefetch org.macports.archivefetch for port doclifter
returned: archivefetch failed for doclifter @2.3_1
:debug:archivefetch Error code: NONE
:debug:archivefetch Backtrace: archivefetch failed for doclifter @2.3_1
while executing
portarchivefetch::fetchfiles
(procedure portarchivefetch::archivefetch_main line 5)
invoked from within
$procedure $targetname
:info:archivefetch Warning: targets not executed for doclifter:
org.macports.activate org.macports.archivefetch org.macports.fetch
org.macports.checksum org.macports.extract org.macports.patch
org.macports.configure org.macports.build org.macports.destroot
org.macports.install
:notice:archivefetch

Where is the manpage of ack (a.k.a ack-grep on ubuntu)?

2012-08-12 Thread Peng Yu
Hi,

I don't see man page of ack. Is it available from macports? Or my
installation has some problem? Is there is a way to test my
installation regarding this issue? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Enable +conceal for vim?

2012-08-07 Thread Peng Yu
Hi,

conceal is not enable for vim. Is there a way to enable it? Thanks!

~$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 26 2012 01:05:30)
MacOS X (unix) version
Included patches: 1-244, 246-615
Compiled by root@peng-yus-macbook-pro.local
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
+mouse_xterm -mouse_urxvt +multi_byte +multi_lang -mzscheme +netbeans_intg
+path_extra -perl +persistent_undo +postscript +printer -profile +python
-python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs +smartindent
-sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
 -xterm_clipboard -xterm_save
   system vimrc file: /opt/local/etc/vimrc
 user vimrc file: $HOME/.vimrc
  user exrc file: $HOME/.exrc
  fall-back for $VIM: /opt/local/share/vim
Compilation: /usr/bin/gcc-4.2 -c -I. -Iproto -DHAVE_CONFIG_H
-I/opt/local/include -DMACOS_X_UNIX -no-cpp-precomp  -pipe -O2 -arch
x86_64 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: /usr/bin/gcc-4.2   -L/opt/local/lib -arch x86_64
-L/usr/local/lib -o vim   -lm  -lncurses -liconv -lintl -framework
Cocoa 
-L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
-lpython2.7 -framework CoreFoundation -u _PyMac_Error
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python

~$ which vim
/opt/local/bin/vim

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users


Is man gp available?

2012-07-03 Thread Peng Yu
Hi,

I have pari installed. But I don't see man gp. Is there a way to
double check whether man gp should be available or not?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Where is gprc? (pari package)

2012-07-03 Thread Peng Yu
Hi,

On ubuntu installation of pari-gp, there is /etc/gprc, which is used
by gp. But I don't find gprc in macports' pari, and it seems that gp
does not load any system wide gprc file. Shall this be fixed? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Where is gprc? (pari package)

2012-07-03 Thread Peng Yu
On Tue, Jul 3, 2012 at 8:13 PM, Brandon Allbery allber...@gmail.com wrote:
 On Tue, Jul 3, 2012 at 8:44 PM, Peng Yu pengyu...@gmail.com wrote:

 On ubuntu installation of pari-gp, there is /etc/gprc, which is used
 by gp. But I don't find gprc in macports' pari, and it seems that gp
 does not load any system wide gprc file. Shall this be fixed? Thanks!


 Even if it doesn't come with one, it will probably (if it follows the usual
 configure-stye rules) use one created at /opt/local/etc/gprc.

I assume that you meant if there were such a file
(/opt/local/etc/gprc), gp would use it. But since there is no such a
file, gp will just skip this step? Or gp still trys to access
/etc/gprc?

~$ cat /opt/local/etc/gprc
cat: /opt/local/etc/gprc: No such file or directory

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Where is gprc? (pari package)

2012-07-03 Thread Peng Yu
 Running it under dtruss should give you the answer, if all else fails.

Never knew dtruss. Good to know.

It indeed access /etc/gprc. Shall this problem be corrected in macports?

165 open_nocancel(/etc/gprc\0, 0x0, 0x1B6) = -1 Err#2

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


graphviz problem: Warning: Could not load /opt/local/lib/graphviz/libgvplugin_pango.6.dylib - file not found

2012-06-01 Thread Peng Yu
Hi,

~/linux/test/graphviz/bin/dot$ port installed |grep graph
  graphviz @2.28.0_3
  graphviz-devel @2.29.20120521.0446_0 (active)
  graphviz-gui-devel @2.29.20120521.0446_0 (active)

dot was installed by macports. And I worked perfectly before.

But now, I run into the following problem. The file
/opt/local/lib/graphviz/libgvplugin_pango.6.dylib is available on my
system. Does anybody know why dot says it is not available? Thanks!

~/linux/test/graphviz/bin/dot$ which dot
/opt/local/bin/dot
~/linux/test/graphviz/bin/dot$ dot -v
Warning: Could not load
/opt/local/lib/graphviz/libgvplugin_pango.6.dylib - file not found
dot - graphviz version 2.29.20120521.0446 (20120521.0446)
libdir = /opt/local/lib/graphviz
Warning: Could not load
/opt/local/lib/graphviz/libgvplugin_pango.6.dylib - file not found
Activated plugin library: libgvplugin_dot_layout.6.dylib
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.6.dylib
Using render: dot:core
Using device: dot:dot:core
The plugin configuration file:
/opt/local/lib/graphviz/config6
was successfully loaded.
render  :  cairo dot eps fig gd lasi map pic pov ps quartz svg tk
vml vrml xdot
layout  :  circo dot fdp neato nop nop1 nop2 osage patchwork sfdp twopi
textlayout  :  textlayout
device  :  bmp canon cgimage cmap cmapx cmapx_np dot eps exr fig gd
gd2 gif gv imap imap_np ismap jp2 jpe jpeg jpg pct pdf pic pict plain
plain-ext png pov ps ps2 psd sgi svg svgz tga tif tiff tk vml vmlz
vrml wbmp webp x11 xdot xlib
loadimage   :  (lib) bmp eps gd gd2 gif jpe jpeg jpg pdf png ps svg webp xbm



~/linux/test/graphviz/bin/dot$ ll
/opt/local/lib/graphviz/libgvplugin_pango.6.dylib
-rwxr-xr-x 1 root admin 39848 2012-05-21 16:10:38
/opt/local/lib/graphviz/libgvplugin_pango.6.dylib

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Installing macports packages from binary

2012-06-01 Thread Peng Yu
Hi,

One problem with macports is that it take a long time to get the
packages compiled. If I don't a whole system selfupdate and upgrade,
it can take hours. This is unbearable. I think that there are only
limited number of Mac OSes. Is possible to add a new feature to allow
installation from binary directly?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: graphviz problem: Warning: Could not load /opt/local/lib/graphviz/libgvplugin_pango.6.dylib - file not found

2012-06-01 Thread Peng Yu
On Fri, Jun 1, 2012 at 9:55 AM, Jeremy Lavergne
jer...@lavergne.gotdns.org wrote:
 /opt/local/lib/graphviz/libgvplugin_pango.6.dylib

 What version of libffi do you have installed? It was updated recently which 
 broke graphviz, which was then marked for a rebuild just 30 minutes ago 
 (https://trac.macports.org/changeset/93852).

 Try selfupdate and upgrade outdated ports, then see if graphviz works again.

After I run 'sudo port upgrade outdated', I got the following.


---  Computing dependencies for orbit2
---  Deactivating orbit2 @2.14.19_0+universal
---  Cleaning orbit2
---  Activating orbit2 @2.14.19_1+universal
---  Cleaning orbit2
Error: Requested variants  do not match original selection +universal.
Please use the same variants again, perform 'port clean gconf' or
specify the force option (-f).
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets

Should I run 'sudo port -f clean gconf'? I'm not sure if there is some
unwanted consequence.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


What is mp-gcc?

2012-05-23 Thread Peng Yu
Hi,

I see mp-gcc*. I can find what mp stands for? Could anybody let me
know? Thanks!

~$ port select --list gcc
Available versions for gcc:
gcc40
gcc42
llvm-gcc42
mp-gcc44
mp-gcc45
mp-gcc46
none (active)


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Do I have correct boost python installed?

2012-05-23 Thread Peng Yu
Hi,

I have boost installed.

~$ port installed|grep boost
  boost @1.48.0_4
  boost @1.49.0_0 (active)

I have the python directory.

/opt/local/include/boost$ ls -d python
python

But I don't find the library file. How to get library files installed? Thanks!

/opt/local/include/boost$ ll /opt/local/lib/libboost_py*
ls: cannot access /opt/local/lib/libboost_py*: No such file or directory

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Distributing binaries in macports

2012-01-07 Thread Peng Yu
Hi Chris,

 Still waiting for the transcript from a 'sudo port -v install 
 some-random-port' ….

I just got some time to install another package. Here you go.

I assume that Building ... means compiling and linking. If that is
the case, I can see that some packages are directly installed from
binaries. But somes are not, for example, gnupg. Do I understand the
message correctly?

$ sudo port install pwman
Password:
---  Computing dependencies for pwman
---  Dependencies to be installed: gnupg libusb-compat libusb openldap
---  Fetching archive for libusb
---  Attempting to fetch libusb-1.0.8_0.darwin_10.x86_64.tbz2 from
http://packages.macports.org/libusb
---  Attempting to fetch libusb-1.0.8_0.darwin_10.x86_64.tbz2.rmd160
from http://packages.macports.org/libusb
---  Installing libusb @1.0.8_0
---  Activating libusb @1.0.8_0
---  Cleaning libusb
---  Fetching archive for libusb-compat
---  Attempting to fetch libusb-compat-0.1.3_0.darwin_10.x86_64.tbz2
from http://packages.macports.org/libusb-compat
---  Attempting to fetch
libusb-compat-0.1.3_0.darwin_10.x86_64.tbz2.rmd160 from
http://packages.macports.org/libusb-compat
---  Installing libusb-compat @0.1.3_0
---  Activating libusb-compat @0.1.3_0
---  Cleaning libusb-compat
---  Fetching archive for openldap
---  Attempting to fetch openldap-2.4.21_4.darwin_10.x86_64.tbz2 from
http://packages.macports.org/openldap
---  Attempting to fetch
openldap-2.4.21_4.darwin_10.x86_64.tbz2.rmd160 from
http://packages.macports.org/openldap
---  Installing openldap @2.4.21_4
---  Activating openldap @2.4.21_4
---  Cleaning openldap
---  Fetching archive for gnupg
---  Attempting to fetch gnupg-1.4.11_1.darwin_10.x86_64.tbz2 from
http://packages.macports.org/gnupg
---  Fetching gnupg
---  Attempting to fetch gnupg-1.4.11.tar.bz2 from
http://distfiles.macports.org/gnupg
---  Verifying checksum(s) for gnupg
---  Extracting gnupg
---  Configuring gnupg
---  Building gnupg
---  Staging gnupg into destroot
---  Installing gnupg @1.4.11_1
---  Activating gnupg @1.4.11_1
---  Cleaning gnupg
---  Fetching archive for pwman
---  Attempting to fetch pwman-0.4.4_0.darwin_10.x86_64.tbz2 from
http://packages.macports.org/pwman
---  Attempting to fetch pwman-0.4.4_0.darwin_10.x86_64.tbz2.rmd160
from http://packages.macports.org/pwman
---  Installing pwman @0.4.4_0
---  Activating pwman @0.4.4_0
---  Cleaning pwman



-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Distributing binaries in macports

2012-01-04 Thread Peng Yu
Hi,

I'm not sure if there is a way so that I can directly install binaries
from macports. Right now, macports compiles packages during
installation, which may take too long to finish and take too much cpu
time. Would you please let me know if there is such an option
available? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Distributing binaries in macports

2012-01-04 Thread Peng Yu
On Wed, Jan 4, 2012 at 10:34 AM, Jeremy Lavergne
jer...@lavergne.gotdns.org wrote:
 I have never changed anything in macports.conf. What I'm suppose to
 look for in this file?

 This is the only currently included setting:
 #portarchivetype tbz2

I see this is commented as you have shown. Should I uncomment it or
keep it as is?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Distributing binaries in macports

2012-01-04 Thread Peng Yu
On Wed, Jan 4, 2012 at 10:30 AM, Peng Yu pengyu...@gmail.com wrote:
 MacPorts will download pre-built binaries if they're available (e.g.,
 they're built, the license permits binary distribution).

 I just installed ImageMagick. It seems that macports compiled it
 rather download the binary directly. I think that IM's license should
 allow compilation to binary.

 If you never see attempts made to fetch from packages.macports.org, you
 might want to check your macports.conf to ensure none of the
 archive-related settings are being set to something outside of the
 defaults.

 I have never changed anything in macports.conf. What I'm suppose to
 look for in this file?

 My OS is 10.6.8.

Hi Chris,

I just realize that I didn't send this to the mailing list. Here is my OS info.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Distributing binaries in macports

2012-01-04 Thread Peng Yu
On Wed, Jan 4, 2012 at 5:56 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Jan 4, 2012, at 09:56, Chris Jones wrote:

 Also note binary tarballs are only available for OSX 10.6 at the moment.

 And only for x86_64. If you're running Snow Leopard on a 32-bit Mac (i.e. you 
 have a Core processor instead of a Core 2 processor), or if you're trying to 
 build universal, you won't get binaries for those either.

My Macbook Pro is 64bit.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


macports document in pdf

2011-12-17 Thread Peng Yu
Hi,

I only see html version document. But I prefer a pdf version. Besides
creating one from html, is there any pdf document for macports?

http://guide.macports.org/

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Where is gcc_select installed?

2011-12-17 Thread Peng Yu
Hi,

I'm wondering where gcc_select is installed? I have it installed already.

/opt/local/var/macports$ port installed |grep gcc_select
  gcc_select @0.1_5 (active)

According to this page, there should be a command called gcc_select.
But I just don't find one. Is my understanding wrong?

https://trac.macports.org/wiki/UsingTheRightCompiler

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Peng Yu
Hi Ryan,

 If you still cannot figure out where the `-arch` flags are coming from, show 
 us a complete log of the output of running `configure` and `make`. The 
 config.log may be helpful too.

I can not single out a simple test case. But please try compile the
following package at the following address.

http://www.tbi.univie.ac.at/~ronny/RNA/ViennaRNA/ViennaRNA-2.0.0.tar.gz

I have gcc45 active. After run configure, I run make make, then I got
error in the Perl directory. The problem is that the following
automatically generated file has the -arch argument. I don't want to
change it manually as it is automatically generated.

./Perl/Makefile.perl:44:LDFLAGS =  -Wl,-search_paths_first -arch i386
-arch x86_64 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk
-mmacosx-version-min=10.5 -fstack-protector

The gcc version:

~$ which gcc
/opt/local/bin/gcc
~$ gcc --version
gcc (GCC) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The error message:

gcc -c   -fno-common -DPERL_DARWIN -no-cpp-precomp -arch i386 -arch
x86_64 -nostdinc -B/Developer/SDKs/MacOSX10.5.sdk/usr/include/gcc
-B/Developer/SDKs/MacOSX10.5.sdk/usr/lib/gcc
-isystem/Developer/SDKs/MacOSX10.5.sdk/usr/include
-F/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks
-mmacosx-version-min=10.5 -DUSE_SITECUSTOMIZE
-DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing
-pipe -fstack-protector -O3   -DVERSION=\2.0.0\
-DXS_VERSION=\2.0.0\  -I/usr/local/ActivePerl-5.14/lib/CORE
RNA_wrap.c
gcc: unrecognized option '-no-cpp-precomp'
cc1: error: unrecognized command line option -arch
cc1: error: unrecognized command line option -arch


Please let me know if there is anything that is not cleary to you.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Peng Yu
 Outside of MacPorts (and even within MacPorts, when you've selected a 
 non-Apple compiler using `configure.compiler`), `-arch` is not passed to the 
 compiler by default. Either the specific third-party software you're trying 
 to build is doing so deliberately (if this is the case, patch that software 
 to not do that); or it's making use of

It is a little strange to me that more than I got the -arch problem
for more than one third party packages. I'd suspect that there is some
configuration issues on my mac machine, otherwise it not be likely to
have several packages have the same problem. But this is just my
speculation.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Peng Yu
On Sat, Dec 17, 2011 at 11:27 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Dec 17, 2011, at 23:25, Peng Yu wrote:

 I have gcc45 active. After run configure, I run make make, then I got
 error in the Perl directory. The problem is that the following
 automatically generated file has the -arch argument. I don't want to
 change it manually as it is automatically generated.

 ./Perl/Makefile.perl:44:LDFLAGS =  -Wl,-search_paths_first -arch i386
 -arch x86_64 -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk
 -mmacosx-version-min=10.5 -fstack-protector

 Sounds like

 https://trac.macports.org/ticket/24779

 which was just fixed. Have you already run sudo port selfupdate and sudo 
 port upgrade outdated?

I have daily updated automatically running. So my system should be
updated. I just tried it again. Does the error at the end mean the
install is up to date?

~$ sudo sudo port selfupdate
---  Updating MacPorts base sources using rsync
MacPorts base version 2.0.3 installed,
MacPorts base version 2.0.3 downloaded.
---  Updating the ports tree
---  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
~$ sudo port upgrade outdated
Error: No ports matched the given expression


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-17 Thread Peng Yu
 Which perl ports are installed?

I see. Now it sounds obvious. I use ActivePerl rather than perl from
port, because I'm not able to use other perl packages when they are
not supported in macports, if I use perl from port.

Besides Brandon's recommendation, PATH=/usr/bin:$PATH make. I guess
the only other walkaround is that I have to gcc_select the default the
mac native compile when it is necessary. Is there any other better
solution?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Does gcc45 support -arch?

2011-12-16 Thread Peng Yu
Hi,

gcc from gcc45 seems not able to recognize the -arch option. I'm
wondering whether it should be the case or I did anything wrong?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Does gcc45 support -arch?

2011-12-16 Thread Peng Yu
 -arch is part of Apple's private patches to support multiple-architecture
 objects and binaries, and is only supported by Apple's Xcode compilers.

Whenever, I try to install a number of third packages, -arch is
somehow supplied to gcc/g++ (I have to going back to the original mac
compiler, which is inconvenient). I'm wondering whether there is a
walkaround to change -arch to the GCC equivalent? I checked my env,
but I don't see how -arch is passed to gcc/g++. Is there a
configuration file that I can change?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Suggest removing all python packages from macports repository

2011-12-11 Thread Peng Yu
Hi,

I used to use python from macports. But it seems to be inconvenient and
many python packages are not available in macports. Once you start using
macport for python packages, basically you lose the opportunity to use any
native method for installing python packages.

Therefore, I recommend to remove all python package entirely from macports
to reduce any future confusion, unless all the python packages can be found
in macports repository (which is unlike to happen).

Although I'm no expert on python, to use python and any python packages, I
find that the following method the most convenient.

Download the python installation dmg from the following link for the target
Mac OS architecture.

http://www.python.org/getit/

Set the following environment variables (in bash, change it according if
you use a different shell).

export PATH=/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH
export
MANPATH=/Library/Frameworks/Python.framework/Versions/2.7/share/man:$MANPATH


Install easy_install by following instructions here

http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other

Install all python packages using easy_install. For example, to install
mercurial (for that matter, I also recommend removing mercurial from
macports), run the following command.

easy_install -U mercurial

Just my 2 cents.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


cpan2port -v -t LaTeX::Table error

2011-11-23 Thread Peng Yu
Hi,

I get the following error, when I run the following command. But I get
no error when I tried a different package. Does anybody how to fix the
error?

~/Downloads/macports/test$ cpan2port -v -t Latex::Table
Going to read '/Users/pengy/.cpan/Metadata'
  Database was generated on Wed, 23 Nov 2011 17:30:03 GMT
(((can't expand Latex::Table at /Users/pengy/linux/bin/bin/cpan2port line 142.
))) at /Users/pengy/linux/bin/bin/cpan2port line 337
main::foreach_pkg('CODE(0x100803ea0)') called at
/Users/pengy/linux/bin/bin/cpan2port line 362


~/Downloads/macports/test$ cpan2port -v -t Math::Round
Going to read '/Users/pengy/.cpan/Metadata'
  Database was generated on Wed, 23 Nov 2011 17:30:03 GMT
Math::Round is not perl porter
Math::Round will show deps
Running get for module 'Math::Round'
Checksum for 
/Users/pengy/.cpan/sources/authors/id/G/GR/GROMMEL/Math-Round-0.06.tar.gz
ok
trying to find dist in /Users/pengy/.cpan/build/Math-Round-0.06*
---
rmd160: c9f68f179d77a992a1bf21b0918457415a6789c9
sha256: a5086f7693ac49a9bdcdc9cccff9159be527d150951319c061bfb2e0dedb8da4

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


How to distinguish broken link and good link using ls --color=auto?

2011-11-16 Thread Peng Yu
Hi,

ls --color=auto on ubuntu distinguishes broken and good links. But it
seems that the same command does not do so using the macports version.
Is there a way to mimic the behavior on ubuntu?

/opt/local/libexec/gnubin/ls


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
Hi,

On ubuntu, it can prompt me what to do if a package is missing. I'm
wondering if there is anything similar on mac.

~$ hg
The program 'hg' is currently not installed.  You can install it by typing:
sudo apt-get install mercurial


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
On Fri, Nov 11, 2011 at 1:26 PM, Ryan Schmidt ryandes...@macports.org wrote:
 On Nov 11, 2011, at 13:02, Peng Yu wrote:

 On ubuntu, it can prompt me what to do if a package is missing. I'm
 wondering if there is anything similar on mac.

 ~$ hg
 The program 'hg' is currently not installed.  You can install it by typing:
 sudo apt-get install mercurial

 Phil, I think you missed the point of the question. The question is, if a 
 user knows they need a program called hg but they don't have it installed, 
 what can they do to find out what port, if any, would install it? I happen to 
 know that hg is provided by the port mercurial, but someone not familiar 
 with the software might not know that. The answer is that there is no feature 
 in MacPorts to help you with that. port provides only works if you know 
 exactly where the file is on disk, and if you already have the port 
 installed. port search only works if the maintainer put the name of the 
 program into the port's description. So, to find out what software package 
 provides a given program, your best bet is to use an Internet search engine, 
 e.g. Google. Then use port search to find out if MacPorts has a port for 
 that software package.


That was my question.

Although searching in google is one option, it will be convenient if
it can be prompt at the command line (google search is much slower
than a direct command line prompt). I'm not sure what is used in
ubuntu, but if ubuntu can do it, theoretically, port should also be
able to do it.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: Prompt what package to install when it is missing

2011-11-11 Thread Peng Yu
On Fri, Nov 11, 2011 at 1:53 PM, Phillip Koebbe
phillip.koe...@gmail.com wrote:

 On Nov 11, 2011, at 1:02 PM, Peng Yu wrote:

 Hi,

 On ubuntu, it can prompt me what to do if a package is missing. I'm
 wondering if there is anything similar on mac.

 ~$ hg
 The program 'hg' is currently not installed.  You can install it by typing:
 sudo apt-get install mercurial


 Since Ubuntu is based on Debian, it's built around APT and knows what's 
 installed. I know of nothing built-in, either in the Mac OS or in MacPorts, 
 that could do the same thing. Since there are various ways of installing 
 software on a Mac (download a dmg/pkg, Mac App Store, MacPorts, Homebrew, 
 self-compile, etc), and you can have software installed in various places 
 (/opt, /sw, /usr/local, /Applications, ~/Applications, etc), I'm inclined to 
 think it would be quite difficult to pull off for a third party application.

I was not taking about the general question as you mentioned. A
smaller step is to just prompt macport packages.


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


MAMP www.mamp.info and macports' phpMyAdmin compatibility

2011-10-09 Thread Peng Yu
Hi,

I have installed MAMP through www.mamp.info, which is much simpler
than MAMP from macports. Then I wan to install phpMyAdmin with
macports. I'm wondering if phpMyAdmin with macports is compatible with
MAMP from www.mamp.info. Does anybody have any experience?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Install python module in macports

2011-09-19 Thread Peng Yu
Hi,

py27-pdfminer is not available in port. I want to install it in my
machine. Could anybody let me know what the correct way to install
python modules so that they are compatible with macports? Thanks!

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


How to install doxygen --with-doxywizard?

2011-09-04 Thread Peng Yu
Hi,

The default installation of doxygen does not have doxywizard. Is there
anyway to enable doxywizard?

--
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


How to install a perl packages that is not available in mac port?

2011-08-14 Thread Peng Yu
Hi,

I'm wondering how to install a perl package if it is not available on
mac port. I remember that I can not use cpan, as it will mess up with
port installation.

I tried the following. But I'm not sure how to install once the
package is built on my machine.

https://trac.macports.org/wiki/howto/cpan2port

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How to install a perl packages that is not available in mac port?

2011-08-14 Thread Peng Yu
On Sun, Aug 14, 2011 at 9:29 AM, Ryan Schmidt ryandes...@macports.org wrote:

 On Aug 14, 2011, at 09:22, Peng Yu wrote:

 I'm wondering how to install a perl package if it is not available on
 mac port. I remember that I can not use cpan, as it will mess up with
 port installation.

 Correct, using cpan, or other non-MacPorts methods, to install files into the 
 MacPorts prefix, is not recommended.


 I tried the following. But I'm not sure how to install once the
 package is built on my machine.

 https://trac.macports.org/wiki/howto/cpan2port

 Using cpan2port is a great way to get a start at a Portfile that can be used 
 to install the port.

 Testing a local portfile is easy. Simply cd into the new port's directory 
 and type sudo port install.

 Once you have a port that works, you can submit it by creating a ticket in 
 the issue tracker.

It is not quite clear to me how to submit the package that ported. How
to specify the dependencies? Would you please let me know?

Also, is there a chance that a cpan package will not work with port?
If it is always going to work, can we automatically port all cpan
packages to mac port so that less human intervention is needed?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


How to make the link pdf2txt.py-2.7 without '-2.7'?

2011-07-30 Thread Peng Yu
Hi,

I installed the following package. But the link has the extra version
number. Is there a way to remove it from port?

sudo port install py27-pdfminer

~$ ll `which pdf2txt.py-2.7 `
lrwxr-xr-x 1 root admin 74 2011-07-30 12:19:03
/opt/local/bin/pdf2txt.py-2.7 -
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pdf2txt.py


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: How to make the link pdf2txt.py-2.7 without '-2.7'?

2011-07-30 Thread Peng Yu
On Sat, Jul 30, 2011 at 4:16 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On Jul 30, 2011, at 12:41, Peng Yu wrote:

 I installed the following package. But the link has the extra version
 number. Is there a way to remove it from port?

 Yes, but we're not going to do that. There is also the port py26-pdfminer, 
 and it installs the binary pdf2txt.py-2.6. They can't both install pdf2txt.py 
 or they would conflict with one another. Just use the binary with its 
 suffixed name. Or use it with its original name from the long framework path. 
 If this is just about the inconvenience of typing the command in the 
 terminal, you can set up a shell alias to make it more convenient.

Sorry, that I didn't state my question clearly. I remember there is a
command (using port) to select whether to use py26 or py27 even both
are installed (I forget the command name). Is there something similar
for pdf2txt.py-2.7 so that I can select which version of pdf2txt.py is
going to be used without having to specify the suffix?


 sudo port install py27-pdfminer

 ~$ ll `which pdf2txt.py-2.7 `
 lrwxr-xr-x 1 root admin 74 2011-07-30 12:19:03
 /opt/local/bin/pdf2txt.py-2.7 -
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/pdf2txt.py





-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


gtk-doc installation error configure: error: could not find DocBook XML DTD V4.3 in XML catalog

2011-06-26 Thread Peng Yu
I always get this error. Does anybody know how to fix the error and
install gtk-doc?

$ sudo port -d install gtk-doc

.

checking for DocBook XML DTD V4.3 in XML catalog... not found
configure: error: could not find DocBook XML DTD V4.3 in XML catalog
shell command  cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/work/gtk-doc-1.17
 ./configure --prefix=/opt/local
--with-xml-catalog=/opt/local/etc/xml/catalog  returned error 1
Error: Target org.macports.configure returned: configure failure:
shell command failed (see log for details)
DEBUG: Backtrace: configure failure: shell command failed (see log for details)
while executing
$procedure $targetname
Warning: the following items did not execute (for gtk-doc):
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
Log for gtk-doc is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


gtk-doc installation error

2011-06-22 Thread Peng Yu
Hi,

I get the following error. Does anybody know how to fix the problem?
The content of the log file is posted at the bottom.

$sudo port install gtk-doc
Password:
---  Computing dependencies for gtk-doc
---  Configuring gtk-doc
Error: Target org.macports.configure returned: configure failure:
shell command failed (see log for details)
Log for gtk-doc is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets

-- 
Regards,
Peng

version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main gnome-doc-utils 0.20.6_0 exists in the ports tree
:debug:main gnome-doc-utils 0.20.6_0 +python27 is the latest installed
:debug:main gnome-doc-utils 0.20.6_0 +python27 is active
:debug:main Merging existing variants '+python27' into variants
:debug:main new fully merged portvariants: python27 +
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/gnome/gnome-doc-utils
:debug:main OS darwin/10.7.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main only one arch supported, so not adding the default universal variant
:debug:main Executing variant python27 provides python27
:debug:main No need to upgrade! gnome-doc-utils 0.20.6_0 =
gnome-doc-utils 0.20.6_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main gettext 0.18.1.1_2 exists in the ports tree
:debug:main gettext 0.18.1.1_2  is the latest installed
:debug:main gettext 0.18.1.1_2  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants:
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gettext
:debug:main OS darwin/10.7.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/archcheck-1.0.tcl
:debug:main universal variant already exists, so not adding the default one
:debug:main No need to upgrade! gettext 0.18.1.1_2 = gettext 0.18.1.1_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main libiconv 1.13.1_0 exists in the ports tree
:debug:main libiconv 1.13.1_0  is the latest installed
:debug:main libiconv 1.13.1_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants:
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/textproc/libiconv
:debug:main OS darwin/10.7.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a
pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a
pre-existing procedure. Target override will not be provided
:debug:main Using group file
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main Reading variant descriptions from
/opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main universal variant already exists, so not adding the default one
:debug:main No need to upgrade! libiconv 1.13.1_0 = libiconv 1.13.1_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 5.9_0 exists in the ports tree
:debug:main ncurses 5.9_0  is the latest installed
:debug:main ncurses 5.9_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants:
:debug:main Changing to port directory:
/opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/ncurses
:debug:main OS darwin/10.7.0 (Mac OS X 10.6) arch i386
:debug:main org.macports.load registered provides 'load', a
pre-existing 

Install mesa problem

2011-06-21 Thread Peng Yu
Hi,

I get the following error when I install mesa. It seems that the
download failed. Does anybody know what the problem is?

-- 
Regards,
Peng

$sudo port install mesa
---  Computing dependencies for mesa
---  Dependencies to be installed: makedepend xorg-dri2proto xorg-glproto
---  Fetching makedepend
---  Verifying checksum(s) for makedepend
---  Extracting makedepend
---  Configuring makedepend
---  Building makedepend
---  Staging makedepend into destroot
---  Installing makedepend @1.0.3_0
---  Activating makedepend @1.0.3_0
---  Cleaning makedepend
---  Fetching xorg-dri2proto
---  Verifying checksum(s) for xorg-dri2proto
---  Extracting xorg-dri2proto
---  Configuring xorg-dri2proto
---  Building xorg-dri2proto
---  Staging xorg-dri2proto into destroot
---  Installing xorg-dri2proto @2.3_0
---  Activating xorg-dri2proto @2.3_0
---  Cleaning xorg-dri2proto
---  Fetching xorg-glproto
---  Verifying checksum(s) for xorg-glproto
---  Extracting xorg-glproto
---  Configuring xorg-glproto
---  Building xorg-glproto
---  Staging xorg-glproto into destroot
---  Installing xorg-glproto @1.4.12_0
---  Activating xorg-glproto @1.4.12_0
---  Cleaning xorg-glproto
---  Fetching mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
ftp://ftp.freedesktop.org/pub/mesa/7.10.3/
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://distfiles.macports.org/mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://lil.fr.distfiles.macports.org/mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://www.buraphalinux.org/download/bls2.0/dvd_source/source/xorg/xserver/mesa/
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://sea.us.distfiles.macports.org/macports/mpdistfiles/mesa
---  Attempting to fetch MesaLib-7.10.3.tar.bz2 from
http://svn.macports.org/repository/macports/distfiles/mesa
Error: Target org.macports.fetch returned: fetch failed
Log for mesa is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


About lock on simultaneous port

2011-06-21 Thread Peng Yu
Hi,

I'm not patient enough to wait port to finish sometime, especially
when I need to install an additional package when a port process is
already running. Therefore, I'd like to run more than one port process
simultaneously. But currently, it doesn't allow me to do so. I'm
wondering if it is possible to make the lock more granular so that I
can run multiple port processes.


$sudo port install pdftk
Password:
Waiting for lock on /opt/local/var/macports/registry/.registry.lock

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Which texlive package has mtmi.tfm?

2011-06-20 Thread Peng Yu
Hi,

The default installation of texlive doesn't include mtmi.tfm. I assume
that it should be in some textlive-* package. Could anybody let me
know which it is?

http://www.ctan.org/tex-archive/fonts/mt11p

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


How to install perl package Class/CSV.pm using port?

2011-05-29 Thread Peng Yu
Hi,

I get the following error when I run a perl script. Class/CSV.pm is
missing. I remember that I should use port rather than cpan to install
perl modules. But I'm not sure how to find the corresponding port
package for any given perl module. Is there a systematic naming
convention for converting module names from perl to port? What port
package is form Class/CSV.pm?

Can't locate Class/CSV.pm in @INC (@INC contains:
/opt/local/lib/perl5/site_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/site_perl/5.12.3
/opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/vendor_perl/5.12.3
/opt/local/lib/perl5/5.12.3/darwin-multi-2level
/opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl
/opt/local/lib/perl5/vendor_perl .) at ./xxx.pl line 7.
BEGIN failed--compilation aborted at ./xxx.pl line 7.

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


'port upgrade outdated' stops at gcc44

2011-05-28 Thread Peng Yu
Hi,

'port upgrade outdated' stops at gcc44. Does anyone know why this
happens and how to fix it?

$sudo port upgrade outdated
Password:
---  Computing dependencies for gcc44
---  Fetching gcc44
---  Attempting to fetch gcc-core-4.4.6.tar.bz2 from
ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.4.6/


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: 'port upgrade outdated' stops at gcc44

2011-05-28 Thread Peng Yu
On Sat, May 28, 2011 at 1:53 PM, Ryan Schmidt ryandes...@macports.org wrote:

 On May 28, 2011, at 08:45, Peng Yu wrote:

 'port upgrade outdated' stops at gcc44. Does anyone know why this
 happens and how to fix it?

 $sudo port upgrade outdated
 Password:
 ---  Computing dependencies for gcc44
 ---  Fetching gcc44
 ---  Attempting to fetch gcc-core-4.4.6.tar.bz2 from
 ftp://gcc.gnu.org/pub/gcc/releases/gcc-4.4.6/

 This was just answered again recently:

 http://lists.macosforge.org/pipermail/macports-users/2011-May/024362.html

 The GNU FTP server seems to have problems for some users (including me) and 
 randomly disconnects in a way that MacPorts doesn't detect that this has 
 happened (and MacPorts continues waiting forever for data that will never 
 arrive). You could cancel and try again and MacPorts might pick a different 
 mirror, but if it picks the GNU FTP server again, it will probably fail 
 again. Try downloading the files manually from a MacPorts mirror like 
 http://distfiles.macports.org/gcc44/ and putting them where MacPorts expects 
 them (in this case, /opt/local/var/macports/distfiles/gcc44).


Is there a way to specify which website to download by port?

-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


winetricks: Error: Checksum (sha1) mismatch for winetricks

2011-05-27 Thread Peng Yu
Hi,

I get the following error when I try to install winetricks. I checked
Ticket port. It seems that this error appeared before and has been
fixed. Could anybody let me know what the problem is and how to
successfully install winetricks?

~$sudo port install winetricks
Warning: port definitions are more than two weeks old, consider using selfupdate
---  Computing dependencies for winetricks
---  Dependencies to be installed: cabextract zenity libnotify
---  Fetching cabextract
---  Attempting to fetch cabextract-1.3.tar.gz from
http://distfiles.macports.org/cabextract
---  Verifying checksum(s) for cabextract
---  Extracting cabextract
---  Configuring cabextract
---  Building cabextract
---  Staging cabextract into destroot
---  Installing cabextract @1.3_0
---  Activating cabextract @1.3_0
---  Cleaning cabextract
---  Fetching libnotify
---  Attempting to fetch libnotify-0.5.2.tar.bz2 from
ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/libnotify/0.5
---  Verifying checksum(s) for libnotify
---  Extracting libnotify
---  Configuring libnotify
---  Building libnotify
---  Staging libnotify into destroot
---  Installing libnotify @0.5.2_1
---  Activating libnotify @0.5.2_1
---  Cleaning libnotify
---  Fetching zenity
---  Attempting to fetch zenity-2.30.0.tar.bz2 from
ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/zenity/2.30/
---  Verifying checksum(s) for zenity
---  Extracting zenity
---  Configuring zenity
---  Building zenity
---  Staging zenity into destroot
---  Installing zenity @2.30.0_0
---  Activating zenity @2.30.0_0
---  Cleaning zenity
---  Fetching winetricks
---  Attempting to fetch winetricks from http://www.kegel.com/wine/
---  Verifying checksum(s) for winetricks
Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for winetricks is at:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_winetricks/main.log
Error: Status 1 encountered during processing.
To report a bug, see http://guide.macports.org/#project.tickets


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: texlive-bin fails to update

2011-02-12 Thread Peng Yu
On Sat, Feb 12, 2011 at 12:26 PM, Ryan Schmidt ryandes...@macports.org wrote:
 On Feb 12, 2011, at 11:19, Peng Yu wrote:

 ---  Building texlive-bin

 [snip]

 :info:build tex-file.c: In function 'kpathsea_init_format':
 :info:build tex-file.c:489: error: 'DEFAULT_GFFONTS' undeclared (first
 use in this function)

 Looks like this ticket:

 https://trac.macports.org/ticket/27471

 Try reinstalling texlive-common.

I got the following error when I tried to uninstall texlive-common.
How to uninstall all the dependent packages automatically and
reinstall texlive-common and those dependent packages again?

$sudo port uninstall texlive-common
Password:
---  Unable to uninstall texlive-common 2010_1, the following ports
depend on it:
---  texlive-bin
---  texlive-documentation-base
---  texlive-basic
---  texlive-latex
---  texlive-bin-extra
---  texlive-metapost
---  texlive-context
---  texlive-documentation-english
---  texlive-fontutils
---  texlive-fonts-recommended
---  texlive-lang-czechslovak
---  texlive-lang-dutch
---  texlive-lang-french
---  texlive-lang-german
---  texlive-lang-italian
---  texlive-lang-polish
---  texlive-lang-portuguese
---  texlive-lang-spanish
---  texlive-lang-ukenglish
---  texlive-latex-recommended
---  texlive-math-extra
---  texlive-xetex
---  texlive-luatex
---  texlive-generic-recommended
Error: port uninstall failed: Please uninstall the ports that depend
on texlive-common first.



-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Error: port activate failed: Registry error

2010-12-30 Thread Peng Yu
Hi,

I get the following error. Could you let me know what I should do? Thank you!

$sudo port -f activate texlive-common
Password:
---  The following versions of texlive-common are currently installed:
---  texlive-common @2009_1
---  texlive-common @2010_1
Error: port activate failed: Registry error: Please specify the full
version as recorded in the port registry.


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: perl error when using modules

2010-11-08 Thread Peng Yu
On Mon, Oct 4, 2010 at 8:13 PM, Ryan Schmidt ryandes...@macports.org wrote:
 On Oct 4, 2010, at 19:37, Peng Yu wrote:

 When I run a perl program that calls SSLeay, I get the following
 error. I try to install SSLeay by 'cpan Net::SSLeay', but the problem
 is still not solved. Could you please let me know how to fix the
 problem?

 Can't load 
 '/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle'
 for module Net::SSLeay:
 dlopen(/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle,
 1): Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
  Referenced from:
 /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/Net/SSLeay/SSLeay.bundle
  Reason: image not found at
 /opt/local/lib/perl5/5.8.9/darwin-2level/DynaLoader.pm line 230.
 at wsp.pl line 88
 Compilation failed in require at wsp.pl line 88.
 BEGIN failed--compilation aborted at wsp.pl line 88.

 So the problem is that the SSLeay.bundle installed by p5-net-ssleay is still 
 linking with the old openssl 0.9.8 library. openssl was updated to 1.0.0 in 
 July. p5-net-ssleay also received a revision bump at that time, so you should 
 have been prompted to rebuild it to fix this. See:

 http://trac.macports.org/ticket/25114

 Have you run sudo port selfupdate and sudo port upgrade outdated lately? 
 If not, please do.

 Note, you should not install perl modules using the cpan command; instead, 
 you should install them using MacPorts. For example, as I hinted at above, 
 the Net::SSLeay module is provided by the p5-net-ssleay port.

I suspect that I used cpan to install SSLeay before, because even
after I run sudo port selfupdate, sudo port upgrade outdated and
sudo port install p5-net-ssleay, I still see the same error message
about SSLeay. Do you know what is the method to remove SSLeay
installed by cpan?


-- 
Regards,
Peng
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


  1   2   >