acdsn:acdsn-a:mac
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
acdsn:acdsn-a:mac [2013/08/19 08:44] – created sbolay | acdsn:acdsn-a:mac [2013/11/02 13:44] – [Driver] sbolay | ||
---|---|---|---|
Line 5: | Line 5: | ||
* http:// | * http:// | ||
- | dyld: Library not loaded: /usr/local/lib/libintl.8.dylib | + | http://par.wikia.com/wiki/FAQ |
- | mbp-Sylvain: | + | After a pp compilation |
- | -rw-r--r-- 1 root wheel 60588 26 jui 22:47 libintl.8.dylib | + | |
+ | | ||
- | mbp-Sylvain: | ||
- | mbp-Sylvain:lib sbolay$ ls -la libintl.8* | + | First this small error: |
- | -rwxr-xr-x | + | |
- | dyld: Library not loaded: | + | Check what is going on |
- | ==> DOES NOT WORK! | + | $ cd / |
- | + | $ ls | |
- | + | -rw-r--r-- | |
- | So: | + | |
- | mbp-Sylvain: | + | |
- | declare | + | |
- | mbp-Sylvain: | + | Try to change mode |
+ | $ sudo chmod 755 libintl.8.dylib | ||
+ | $ ls -la libintl.8* | ||
+ | | ||
- | dyld: Library not loaded: / | + | but |
+ | | ||
==> DOES NOT WORK! | ==> DOES NOT WORK! | ||
- | mbp-Sylvain: | ||
+ | So have a look to the PATH: | ||
+ | $ export | ||
+ | declare -x PATH="/ | ||
- | You can download MacPorts here. After installing MacPorts unarchive the pkg-config file, open a terminal, switch | + | Trying |
+ | $ export PATH="/ | ||
- | mbp-Sylvain:pkg-config-0.27 sbolay$ sudo port selfupdate | + | but: |
- | mbp-Sylvain:pkg-config-0.27 sbolay$ sudo port install pkgconfig | + | dyld: Library not loaded: / |
+ | ==> DOES NOT WORK! | ||
- | mbp-Sylvain: | + | OK, first backup |
- | Must specify package names on the command line | + | # mv libintl.8.dylib libintl.8.dylib.bck |
+ | Then, download MacPorts [[http:// | ||
+ | $ sudo port selfupdate | ||
+ | $ sudo port install pkgconfig | ||
+ | $ pkg-config | ||
+ | Must specify package names on the command line | ||
==> GOOD!!!! | ==> GOOD!!!! | ||
- | mbp-Sylvain:libconfig-1.4.8 sbolay$ perlbrew install -v perl-5.16.3 -Dusethreads -Dcc=' | + | Ok, go ahead: |
+ | | ||
+ | $ perlbrew switch perl-5.16.3_WITH_THREADS_CLANG | ||
+ | $ hash -r | ||
+ | $ cpanm ExtUtils:: | ||
+ | --> Working on ExtUtils:: | ||
+ | Fetching http:// | ||
+ | Configuring ExtUtils-PkgConfig-1.14 ... OK | ||
+ | Building and testing ExtUtils-PkgConfig-1.14 ... OK | ||
+ | Successfully installed ExtUtils-PkgConfig-1.14 | ||
+ | 1 distribution installed | ||
- | mbp-Sylvain: | + | Install all what in modules.txt |
- | mbp-Sylvain: | + | $ cat modules.txt | cpanm |
- | mbp-Sylvain: | + | |
+ | Install a missing package(not yet in modules.txt): | ||
+ | $ cpanm Device:: | ||
- | mbp-Sylvain:pkg-config-0.27 sbolay$ cpanm ExtUtils:: | + | And now |
- | --> Working on ExtUtils:: | + | $ pp --gui -I lib -o test -x bin/EasyAccess.pl |
- | Fetching http://www.cpan.org/authors/id/ | + | Can't locate Wx/Perl/Packager.pm in @INC ... |
- | Configuring ExtUtils-PkgConfig-1.14 ... OK | + | |
- | Building and testing ExtUtils-PkgConfig-1.14 ... OK | + | |
- | Successfully installed ExtUtils-PkgConfig-1.14 | + | |
- | 1 distribution installed | + | |
+ | So which pp do I use? | ||
+ | $ which pp | ||
+ | /usr/bin/pp | ||
- | mbp-Sylvain:easyaccess-app sbolay$ cat modules.txt | cpanm | + | Ok, update this perlbrew version |
+ | $ cpanm PAR::Packer | ||
+ | | ||
- | mbp-Sylvain: | + | And we can try also this |
- | + | $ vi lib/ | |
- | mbp-Sylvain: | + | <code perl> |
- | + | ||
- | Can't locate Wx/ | + | |
- | + | ||
- | mbp-Sylvain: | + | |
- | / | + | |
- | + | ||
- | mbp-Sylvain: | + | |
- | + | ||
- | mbp-Sylvain: | + | |
- | + | ||
- | mbp-Sylvain: | + | |
Add | Add | ||
use Wx:: | use Wx:: | ||
above | above | ||
use Wx; | use Wx; | ||
+ | </ | ||
- | mbp-Sylvain:easyaccess-app sbolay$ which pp | + | And now, check which pp: |
- | /Users/sbolay/ | + | |
- | + | /Users/somebody/ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | mbp-Sylvain: | + | |
- | / | + | |
- | + | ||
- | ls | + | |
- | + | ||
- | -rwxr-xr-x | + | |
- | lrwxr-xr-x | + | |
- | lrwxr-xr-x | + | |
- | mbp-Sylvain:lib sbolay$ rm libwx_osx_cocoau_adv-2.9.dylib | + | Symlinks are not properly included during the compilation with pp. So: |
- | mbp-Sylvain: | + | |
- | mbp-Sylvain: | + | $ ls |
- | mbp-Sylvain: | + | |
+ | lrwxr-xr-x | ||
+ | lrwxr-xr-x | ||
- | mbp-Sylvain: | + | So, remove the symlink and cp the original file instead |
- | mbp-Sylvain: | + | |
+ | $ cp libwx_osx_cocoau_adv-2.9.4.0.0.dylib | ||
- | mbp-Sylvain: | + | |
- | mbp-Sylvain: | + | $ cp libwx_osx_cocoau_core-2.9.4.0.0.dylib |
- | mbp-Sylvain: | + | |
- | mbp-Sylvain: | + | $ cp libwx_baseu-2.9.4.0.0.dylib |
+ | $ rm libwx_osx_cocoau_media-2.9.dylib | ||
+ | $ cp libwx_osx_cocoau_media-2.9.4.0.0.dylib libwx_osx_cocoau_media-2.9.dylib | ||
+ | $ rm libwx_osx_cocoau_html-2.9.dylib | ||
+ | $ cp libwx_osx_cocoau_html-2.9.4.0.0.dylib libwx_osx_cocoau_html-2.9.dylib | ||
+ | And now, the compilation should be ok! | ||
+ | ===== Driver ===== | ||
+ | You can find on the [[http:// | ||
+ | You may have to delete the extended attribute | ||
+ | sudo xattr -d com.apple.quarantine / |
acdsn/acdsn-a/mac.txt · Last modified: 2015/07/08 08:43 by tret