I am trying to do a clean build of Lilypond on a clean install of Mac OS X. Dependencies have been installed using Brew.
I do ./configure && make all in the Lilypond dir. It gets through the configure and starts building but ends on
ERROR: In procedure dynamic-link:
ERROR: file: "libguile-srfi-srfi-1-v-3", message: "file not found"
I know what libguile is, I don't know if it's on my system (or where it ought to be) but the configure script completes successfully and does not identify it as a missing dependency so I assume it was able to find it.
Any suggestions? Googling shows some old hints with regards to setting $LD_LIBRARY_PATH, but it seems these don't apply to Mac OS 10.6.
There is a port of lilypond available from MacPorts.
$ port info lilypond
lilypond #2.12.3, Revision 3 (textproc)
Variants: [+]docs, gui, universal
Description: Lilypond is a unix-based automated engraving system that generates beautiful sheet music from input files. Lilypond uses its
own input format, .ly, which in many ways is similar to LaTeX. Lilypond can export sheet music to PDF, EPS, SVG, and PNG
formats, and can also create MIDI files.
Homepage: http://lilypond.org/
Library Dependencies: fontforge, ghostscript, mftrace, guile, texinfo, pango, flex, urw-fonts, netpbm
Platforms: darwin
License: unknown
Maintainers: snc#macports.org, openmaintainer#macports.org
It's likely that the dynamic libraries have a .dylib extension, but need a .so extension.
I worked around this by creating links in /opt/local/lib
Owner-Users-MacBook-Pro-15:~ Carl$ ls -l /opt/local/lib | grep .so
-rwxr-xr-x 2 root admin 45152 Mar 11 12:19 libXcursor.1.dylib
-rw-r--r-- 2 root admin 50232 Mar 11 12:19 libXcursor.a
lrwxr-xr-x 1 root admin 18 Mar 11 12:19 libXcursor.dylib -> libXcursor.1.dylib
-rwxr-xr-x 2 root admin 1105 Mar 11 12:19 libXcursor.la
lrwxr-xr-x 1 root admin 32 Mar 11 21:19 libguile-srfi-srfi-1-v-3.so -> libguile-srfi-srfi-1-v-3.3.dylib
lrwxr-xr-x 1 root admin 36 Mar 11 21:19 libguile-srfi-srfi-13-14-v-3.so -> libguile-srfi-srfi-13-14-v-3.3.dylib
lrwxr-xr-x 1 root admin 32 Mar 11 21:20 libguile-srfi-srfi-4-v-3.so -> libguile-srfi-srfi-4-v-3.3.dylib
lrwxr-xr-x 1 root admin 33 Mar 11 21:20 libguile-srfi-srfi-60-v-2.so -> libguile-srfi-srfi-60-v-2.2.dylib
lrwxr-xr-x 1 root admin 17 Mar 11 21:21 libguile.so -> libguile.17.dylib
lrwxr-xr-x 1 root admin 30 Mar 11 21:22 libguilereadline-v-17.so -> libguilereadline-v-17.17.dylib
The easiest way to install Lilypond on macOS is to use lyp. Apart from installing lyp itself, which is a Ruby gem, there's no other dependency to install, no compilation step. Plus, you can install multiple versions of Lilypond and easily switch between them.
$ gem install lyp
$ lyp install lilypond
To install a specific version:
$ lyp install lilypond#2.19.53
Related
While encountering problems updating protobuf to 3.1 I foolishly ended up removing the libprotbuf* files in /usr/lib/x86_64-linux-gnu
Fortunately Protoc --version now outputs "libprotoc 3.1.0", but I am now trying to get the libprotobuf.so files back. When trying to use things that link to protobuf like matplotlib.pyplot I get an error like
** (process:15246): WARNING **: Failed to load shared library 'libgdk-3.so.0' referenced by the typelib: libprotobuf-lite.so.9: cannot open shared object file: No such file or directory
I have been able to reinstall some of libprotobuf files but the .so files are still missing.
$ ll /usr/lib/x86_64-linux-gnu/libprotobuf*
-rw-r--r-- 1 root root 2.3M Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf.a
-rw-r--r-- 1 root root 387K Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf-lite.a
lrwxrwxrwx 1 root root 25 Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf-lite.so -> libprotobuf-lite.so.9.0.1
lrwxrwxrwx 1 root root 20 Oct 23 2015 /usr/lib/x86_64-linux-gnu/libprotobuf.so -> libprotobuf.so.9.0.1
Anyone know a way to recover the protobuf.so.9.0.1 and libprotobuf-lite.so.9.0.1 files in ubuntu 16.04?
Build Protobuf 2.6.1 version. After building this version it will create libprotobuf.so.9.0.1 and libprotobuf-lite.so.9.0.1.
download the right protobuf version, build it yourself, and you will be just fine.
the original so and the so you are going to build should be the same, the later one will work just fine.
I am developing a OSX application in Objective-C and OpenCV-2.4.12 using Xcode.
I followed this installation video guide and this setup video guide to integrate the OpenCV. Basically in the second video, the author uses the OpenCV dynamic libraries (.dylib files).
This work perfectly in my mac, but in another macs without OpenCV installed the application gives an error and I can´t open and run it.
I have searched and I think the solution is to use static libraries (.a files). But I can´t figure out how to replace the dynamic libraries with static libraries.
Which static libraries I need to use? Where I find them? How I link them in Xcode?
My settings right now:
I added to the project the libopencv_core.2.4.12.dylib, libopencv_highgui.2.4.12.dylib, libopencv_imgproc.2.4.12.dylib.
In the Search Paths I have (like explained in the second video):
Framework Search Paths: /usr/local/lib
Header Search Paths: /usr/local/include
Library Search Paths: "OpenCVFolderPath"/build/lib
Thank you.
I tend to install OpenCV using homebrew and if I look at the options I can specify for OpenCV Version 3 like this:
brew options opencv3
I get this output:
--32-bit
Build 32-bit only
--c++11
Build using C++11 mode
--with-contrib
Build "extra" contributed modules
--with-cuda
Build with CUDA v7.0+ support
--with-examples
Install C and python examples (sources)
--with-ffmpeg
Build with ffmpeg support
...
...
--with-python3
Build with python3 support
--with-qt
Build the Qt4 backend to HighGUI
--with-qt5
Build the Qt5 backend to HighGUI
--with-quicktime
Use QuickTime for Video I/O instead of QTKit
--with-static <--- *** HERE ***
Build static libraries
--with-tbb
Enable parallel code in OpenCV using Intel TBB
--with-vtk
Build with vtk support
--without-eigen
Build without eigen support
--without-numpy
Use a numpy you've installed yourself instead of a Homebrew-packaged numpy
--without-opencl
Disable GPU code in OpenCV using OpenCL
--without-openexr
Build without openexr support
--without-python
Build without Python support
--without-test
Build without accuracy & performance tests
--HEAD
Install HEAD version
So, if I then go ahead and install like this:
brew install opencv3 --with-static
I end up with these static libraries which look like what you want:
ls -l /usr/local/Cellar/opencv3/3.1.0_3/lib/
-r--r--r-- 1 mark admin 1922864 21 Jul 14:23 libopencv_calib3d.a
-r--r--r-- 1 mark admin 3215896 21 Jul 14:23 libopencv_core.a
-r--r--r-- 1 mark admin 965336 21 Jul 14:23 libopencv_features2d.a
-r--r--r-- 1 mark admin 650552 21 Jul 14:23 libopencv_flann.a
-r--r--r-- 1 mark admin 60016 21 Jul 14:23 libopencv_highgui.a
-r--r--r-- 1 mark admin 378128 21 Jul 14:23 libopencv_imgcodecs.a
-r--r--r-- 1 mark admin 3946248 21 Jul 14:23 libopencv_imgproc.a
-r--r--r-- 1 mark admin 954296 21 Jul 14:23 libopencv_ml.a
-r--r--r-- 1 mark admin 542808 21 Jul 14:23 libopencv_objdetect.a
-r--r--r-- 1 mark admin 1078504 21 Jul 14:23 libopencv_photo.a
-r--r--r-- 1 mark admin 269248 21 Jul 14:23 libopencv_shape.a
-r--r--r-- 1 mark admin 694056 21 Jul 14:23 libopencv_stitching.a
-r--r--r-- 1 mark admin 193416 21 Jul 14:23 libopencv_superres.a
-r--r--r-- 1 mark admin 478776 21 Jul 14:23 libopencv_video.a
-r--r--r-- 1 mark admin 149040 21 Jul 14:23 libopencv_videoio.a
-r--r--r-- 1 mark admin 390288 21 Jul 14:23 libopencv_videostab.a
drwxr-xr-x 3 mark admin 102 21 Jul 14:23 pkgconfig
drwxr-xr-x 3 mark admin 102 21 Jul 14:23 python2.7
There doesn't appear to be an equivalent option with OpenCV2, though I am not sure why you would want to use that version.
I recently installed the Python 3.3 DMG from Python.org.
I have pip, virtualenv, and virtualenv-wrapper installed.
When I do:
$ mkvirtualenv -p /usr/local/bin/python3 someenv
The environment gets created as expected.
When I then do a pip install, like say:
(someenv) $ pip install beautifulsoup4
It installs correctly (no errors).
When I then fire up python:
(someenv) $ python
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 01:25:11)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import bs4
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'bs4'
I've also tried a few other packages: pytz, pymemoize, mock, and all seem to suffer from the same "No module named ..." problem.
Looking in the virtual environment's site-packages directory, the packages are there, it's just that the interpreter cannot seem to find them. If I do a pip freeze all installed packages are listed.
Any suggestions?
If it helps, I'm using:
Python 3.3 (again, installed from the .dmg at Python.org)
pip v1.2.1
virtualenv-wrapper v1.8.2
distribute 0.6.28
OSX 10.7 (Lion)
Edit: as requested, the output of sys.path is:
['', '/Library/Frameworks/Python.framework/Versions/3.3/lib/python33.zip',
'/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3',
'/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages']
And as such what is missing is: `/Users/aparkin/.envs/someenv/lib/python3.3/site-packages' -- the virtual environment's site-packages directory.
Edit 2: as well, doing an ls -l on the site-packages directory gives:
$ ls -l .envs/someenv/lib/python3.3/site-packages/
total 168
drwxr-xr-x 7 aparkin staff 238 18 Oct 11:49 PyMemoize-0.1.1-py3.3.egg-info
drwxr-xr-x 3 aparkin staff 102 18 Oct 11:51 __pycache__
drwxr-xr-x 7 aparkin staff 238 18 Oct 11:34 beautifulsoup4-4.1.3-py3.3.egg-info
drwxr-xr-x 9 aparkin staff 306 18 Oct 11:32 bs4
drwxr-xr-x 8 aparkin staff 272 18 Oct 11:31 distribute-0.6.28-py3.3.egg
-rw-r--r-- 1 aparkin staff 237 18 Oct 11:31 easy-install.pth
drwxr-xr-x 6 aparkin staff 204 18 Oct 11:49 memoize
drwxr-xr-x 7 aparkin staff 238 18 Oct 11:51 mock-1.0.0-py3.3.egg-info
-rw-r--r-- 1 aparkin staff 75204 18 Oct 11:51 mock.py
drwxr-xr-x 4 aparkin staff 136 18 Oct 11:31 pip-1.2.1-py3.3.egg
drwxr-xr-x 9 aparkin staff 306 18 Oct 11:44 pytz
drwxr-xr-x 8 aparkin staff 272 18 Oct 11:44 pytz-2012f-py3.3.egg-info
-rw-r--r-- 1 aparkin staff 30 18 Oct 11:31 setuptools.pth
A new feature of Python 3.3 is a standard way to create and manage virtual environments, pyvenv. You should use it instead.
That said, you still should be able to make the old virtualenv work. One thing to check is the value of sys.path when using the virtualenv python that fails. You should see the virtualenv site-packages directory on it. If so and imports still don't work, check the virtualenv lib directories including site-packages for the correct file permissions.
Update: The contents of virtualenv site-packages looks reasonable at first glance. But the value of sys.path looks suspiciously like that of the standard python3.3, not one running from a virtualenv. So check to make sure you really are using that one. Try running the virtualenv python with an absolute path, like:
/path/to/someenv/bin/python3.3 -c 'import sys;print(sys.executable);print(sys.path)'
Also make sure you have no Python-related environment variables set, like PYTHONPATH or shell aliases or functions for python.
env | grep PYTHON
echo $PATH
which python
type python
I think it is because you set an alias for python in your terminal.
If you use zsh, just use an editor (e.g vim) to open ~/.zshrc, and delete the alias for python, and then run source ~/.zshrc in your terminal or close the terminal windows and reopen it.
If you don't use zsh, the principle is the same, just delete the alias.
This will solve your problem.
I think my JDK is broken. I am on OS X 10.6.8.
I want to look in the sources when debugging in Eclipse, etc, but Eclipse can't find the sources, so I looked up the installed JREs and found this path with the title JVM 1.6.0 (MacOS X Default)
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
In Terminal I went to the directory /System/Library/Frameworks/JavaVM.framework/Versions and executed ls -al:
drwxr-xr-x 13 root wheel 442 8 Sep 22:46 .
drwxr-xr-x 12 root wheel 408 8 Sep 22:46 ..
lrwxr-xr-x 1 root wheel 5 8 Sep 22:45 1.3 -> 1.3.1
drwxr-xr-x 3 root wheel 102 21 Jul 2009 1.3.1
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.4 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.4.2 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.5 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.5.0 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.6 -> CurrentJDK
lrwxr-xr-x 1 root wheel 10 8 Sep 22:45 1.6.0 -> CurrentJDK
drwxr-xr-x 10 root wheel 340 8 Sep 22:46 A
lrwxr-xr-x 1 root wheel 1 8 Sep 22:45 Current -> A
lrwxr-xr-x 1 root wheel 59 8 Sep 22:45 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
So Eclipse already has the proper JDK linked.
Another test:
$ javac -version
javac 1.6.0_26
$ which javac
/usr/bin/javac
$ ls -al /usr/bin/ | grep javac
lrwxr-xr-x 1 root wheel 75 8 Sep 22:45 javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
So it all looks fine, but there is no rt.jar or src.jar Here is a screenshot:
So I try to reinstall it. I go to Apple's website and download this package: Java for Mac OS X 10.6 Update 5 Developer Package, file: javadeveloper_for_mac_os_x_10.6__10m3425.dmg.
The installation finished successfully, but it doesn't change anything.
I show the last modified files on my computer, these are only some java tools, located in usr/share/java/Tools
Java VisualVM
Jar Bundler
Applet Launcher
There still is no rt.jar or src.jar in the java home directory.
NOTE: This answer is old and for Apple Java 6. For Oracle Java you need to download the JDK as it includes src.zip.
The source is not included in the default Java download. You need to additionally install the corresponding development package available from ADC.
In addition, Eclipse has not yet been taught how to find the src.zip file and the dialogue cannot look inside packages.
On my 10.7, the above mentioned installation put src.zip in /Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Home/src.jar
From: http://lookfirst.com/2011/03/fix-missing-source-for-java-mac-os-x.html (adapt version #s and paths as needed)
Go to http://connect.apple.com and download Java for Mac OS X 10.6 Update 4 Developer Package
Install it.
Open a Terminal.app window
cd /System/Library/Frameworks/JavaVM.framework/Home
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home/src.jar .
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home/docs.jar .
To all the guys who's been suffering from searching the source code here and there for hours but finally get nothing.
For Eclipse to attach(imperfectly available for 1.6):
jdk1.7.0_21_src_for_mac.zip
I have enabled the Web Server on my Mac OS X (10.5.6) by going to the System Preferences -> Internet & Network -> Sharing and clicking on the Web Server option. It gives me the IP address of my system as the Web Server, but even after clicking on it, it does not show the page, but gives an error: Failed to Connect
Any help on this would be wonderful.
I have tried with MAMP, but there, I am unable to get my own PHP pages to be displayed.
Starting and/or stopping the web server from the command line, gives me the following:
dyld: Symbol not found: _apr_socket_sendfile
Referenced from: /usr/sbin/httpd
Expected in: /usr/lib/libapr-1.0.dylib
Trace/BPT trap
The files on my box are:
~ $ ls -lrt /usr/lib/libapr*
-rwxr-xr-x 1 root wheel 578640 Sep 23 2007 /usr/lib/libapr-1.0.2.7.dylib
-rwxr-xr-x 1 root wheel 393696 Sep 23 2007 /usr/lib/libaprutil-1.0.2.7.dylib
-rwxrwxr-x 1 root admin 569544 Oct 27 10:44 /usr/lib/libaprutil-1.0.2.12.dylib
-rwxrwxr-x 1 root admin 835824 Oct 27 10:44 /usr/lib/libapr-1.0.2.12.dylib
lrwxr-xr-x 1 root admin 25 Jan 4 22:28 /usr/lib/libaprutil-1.dylib -> libaprutil-1.0.2.12.dylib
lrwxr-xr-x 1 root admin 25 Jan 4 22:28 /usr/lib/libaprutil-1.0.dylib -> libaprutil-1.0.2.12.dylib
lrwxr-xr-x 1 root admin 21 Jan 4 22:28 /usr/lib/libapr-1.dylib -> libapr-1.0.2.12.dylib
lrwxr-xr-x 1 root admin 21 Jan 4 22:28 /usr/lib/libapr-1.0.dylib -> libapr-1.0.2.12.dylib
The MD5 values are:
~ $ openssl md5 /usr/sbin/httpd /usr/lib/libapr-1.0.dylib
MD5(/usr/sbin/httpd)= d5194790e9cfaca881d0e8fc3db24889
MD5(/usr/lib/libapr-1.0.dylib)= f7f7fd3cd315ca4e7c6ad2a2f222998e
The libapr-1.0.dylib is linked to the newer 1.0.2.12 version.
I'm having a similar problem and got to this page cause I feel lucky today :)
The error means the httpd binary makes reference to a symbol that cannot be found in the appropriate dynamically linked library (libapr in this case, Apache Runtime Library)
Running same OS X version on an iMac. /usr/lib/libapr-1.0.dylib points to the most recent version of the library (1.0.2.12), which does not define the method/symbol _apr_socket_sendfile
The other version of libapr library is 1.0.2.7, does have that symbol. I had the symbolic links point to this version instead (also for libaprutil):
// BEFORE (both 1.0.2.7 and 1.0.2.12 versions exist, symlinks point to .12)
bash-3.2# ls -l libapr*
-rwxr-xr-x 2 userna wheel 835824 19 Sep 2008 libapr-1.0.2.12.dylib
-rwxr-xr-x 1 root wheel 578640 24 Sep 2007 libapr-1.0.2.7.dylib
lrwxrwxrwx 1 root wheel 21 14 Oct 2008 libapr-1.0.dylib -> libapr-1.0.2.12.dylib
lrwxrwxrwx 1 root wheel 21 14 Oct 2008 libapr-1.dylib -> libapr-1.0.2.12.dylib
-rwxr-xr-x 2 userna wheel 569544 19 Sep 2008 libaprutil-1.0.2.12.dylib
-rwxr-xr-x 1 root wheel 393696 24 Sep 2007 libaprutil-1.0.2.7.dylib
lrwxrwxrwx 1 root wheel 25 14 Oct 2008 libaprutil-1.0.dylib -> libaprutil-1.0.2.12.dylib
lrwxrwxrwx 1 root wheel 25 14 Oct 2008 libaprutil-1.dylib -> libaprutil-1.0.2.12.dylib
// CHANGE symbolic links to previous version
bash-3.2# ln -sf libapr-1.0.2.7.dylib libapr-1.0.dylib
bash-3.2# ln -sf libapr-1.0.2.7.dylib libapr-1.dylib
bash-3.2# ln -sf libaprutil-1.0.2.7.dylib libaprutil-1.0.dylib
bash-3.2# ln -sf libaprutil-1.0.2.7.dylib libaprutil-1.dylib
// TESTing whether httpd is loaded and run
bash-3.2# /usr/sbin/httpd -t
Syntax OK
Not really sure whether this has been broken since last software update that included Apache Web Server, I rarely use it on this box.
Hope it helps ;)
Jon
Maybe there are errors in the apache configuration.
If you disable the webserver in the System preferences and open a terminal you can check your configuration by typing:
httpd -t
If it gives a "Syntax OK" you're one step closer to a working webserver. Start the webserver manually by typing:
sudo httpd
If there are no errors, the webserver is started. Open a browser and check http://localhost. Sometimes an extra refresh (Command+R) is needed.
Stopping the server:
sudo httpd -k stop
If the manually starting works, but the System preferences version doesn't,
Check the /var/log/apache2/error_log for errors.
You can try to do the following:
1. backup current apache
sudo cp /usr/sbin/httpd /usr/sbin/httpd.old
2. Replace link in apache binary file to the old library:
sudo install_name_tool -change /usr/lib/libapr-1.0.dylib /usr/lib/libapr-1.0.2.7.dylib /usr/sbin/httpd
After it should work as expected and other applications will still use the new version of libapr
http://foundationphp.com/tutorials/php_leopard.php
I followed this on mine and it work perfectly.
Try to follow it a see if it works
If you're trying to access the pages from the computer itself just use http://localhost/. Also, try typing the IP address into the browser (instead of just clicking the link in the interface); don't ask me to explain why, but I've seen that make a difference.
Also make sure the OS's firewall is set to allow connections to Apache. "Personal Web Sharing" should be checked.
Have you installed the subversion 1.5 client on your machine? I am seeing the same problem and it seems to be down to this. /usr/lib/libapr-1.0.dylib is normally linked to /Developer/SDKs/MacOSX10.5.sdk/usr/lib/libapr-1.0.2.7.dylib but if you install svn 1.5 it gets re-linked to /opt/subversion/lib/libapr-1.0.2.12.dylib.
The 1.0.2.12 version of the library does not contain the symbol _apr_socket_sendfile.
Having found the problem I'm still trying to figure out how to solve it.
Doug
Stupid question. Does libapr-1.0.dylib exist?
On my Macbook, /usr/lib/libapr-1.0.dylib is a symbolic link to libapr-1.0.2.7.dylib.
Running nm against that file does show that apr_socket_sendfile is defined in that library.
Also: do standard html pages work properly?
It sounds like either:
The httpd that comes first in your path is not /usr/sbin/httpd, and it was built strangely, or
You have installed something that overwrote either httpd or libapr.
What's the MD5 of your httpd and libapr? I get:
$ openssl md5 /usr/sbin/httpd /usr/lib/libapr-1.0.dylib
MD5(/usr/sbin/httpd)= d5194790e9cfaca881d0e8fc3db24889
MD5(/usr/lib/libapr-1.0.dylib)= f1f5ece10140a5c2cea2fece7a9e4918