{"_id":"566e55c12c1e760d0030c57b","__v":0,"project":"54408e54309354080070a896","version":{"_id":"566e55c02c1e760d0030c56c","project":"54408e54309354080070a896","__v":1,"createdAt":"2015-12-14T05:38:08.400Z","releaseDate":"2015-12-14T05:38:08.400Z","categories":["566e55c12c1e760d0030c56d"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.2.3","version":"1.2.3"},"category":{"_id":"566e55c12c1e760d0030c56d","__v":2,"pages":["566e55c12c1e760d0030c56e","566e55c12c1e760d0030c56f","566e55c12c1e760d0030c570","566e55c12c1e760d0030c571","566e55c12c1e760d0030c572","566e55c12c1e760d0030c573","566e55c12c1e760d0030c574","566e55c12c1e760d0030c575","566e55c12c1e760d0030c576","566e55c12c1e760d0030c577","566e55c12c1e760d0030c578","566e55c12c1e760d0030c579","566e55c12c1e760d0030c57a","566e55c12c1e760d0030c57b","566e55c12c1e760d0030c57c","566e55c12c1e760d0030c57d","566e55c12c1e760d0030c57e","566e55c12c1e760d0030c57f","566e55c12c1e760d0030c580","566e55c12c1e760d0030c581","566e55c12c1e760d0030c582","566e55c12c1e760d0030c583","566e55c12c1e760d0030c584","566e55c12c1e760d0030c585","566e55c12c1e760d0030c586","566e55c12c1e760d0030c587","566e55c12c1e760d0030c588","566e5640c15c8f0d000ee863"],"project":"54408e54309354080070a896","version":"566e55c02c1e760d0030c56c","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-17T03:34:44.886Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"user":"544083bee239230800071bef","updates":[],"next":{"pages":[],"description":""},"createdAt":"2014-11-14T03:18:12.718Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"auth":"never","params":[],"url":""},"isReference":false,"order":13,"body":"# The **libuv** [README](https://github.com/joyent/libuv) reads:\n\n>libuv is a multi-platform support library with a focus on asynchronous I/O. It was primarily developed for use by Node.js, but it's also used by Luvit, Julia, pyuv, and others.\n\nBoth node.js and Julia use **libuv**, but it is possible to have them coexist in the same program space even when the versions of libuv are not compatible when using OS/X and Linux.\n\n# Depending on the Linker\n\nFor purposes of calling the Julia embedding API from a node native module as node-julia does, potential conflicts can be resolved by the linker. For OS/X this appears to happen by default, but for Linux this is not the case without the help of the linker flag *-Bsymbolic-functions*.\n\nFrom the Linux ld man page:\n\n>-Bsymbolic-functions\n\n>When creating a shared library, bind references to global function symbols to the definition within the shared library, if any. This option is only meaningful on ELF platforms which support shared libraries.\n\nThe effect is that functions that are defined in Julia's version of libuv are used by libjulia and the version of libuv defined in node is used by node.\n\n# Resolved\n\nHistorically, Julia was not built using *-Bsymbolic-functions* flag by default, but now the latest distributions are (as of December 1, 2014) and so this problem should be considered resolved.\n\n# Problematic distributions when using Julia compiled from source.\nSome versions of Linux (for example Redhat Enterprise 5) do not natively have a linker that supports this flag, but this problem can be avoided by using [The CERN toolset](http://linux.web.cern.ch/linux/devtoolset/#dts21)  instead.\n\n# node 0.10 and Julia 0.4\nRecent changes in version 0.4 of Julia has led to an error during initialization.","excerpt":"","slug":"use-of-libuv","type":"basic","title":"Use of libuv"}
# The **libuv** [README](https://github.com/joyent/libuv) reads: >libuv is a multi-platform support library with a focus on asynchronous I/O. It was primarily developed for use by Node.js, but it's also used by Luvit, Julia, pyuv, and others. Both node.js and Julia use **libuv**, but it is possible to have them coexist in the same program space even when the versions of libuv are not compatible when using OS/X and Linux. # Depending on the Linker For purposes of calling the Julia embedding API from a node native module as node-julia does, potential conflicts can be resolved by the linker. For OS/X this appears to happen by default, but for Linux this is not the case without the help of the linker flag *-Bsymbolic-functions*. From the Linux ld man page: >-Bsymbolic-functions >When creating a shared library, bind references to global function symbols to the definition within the shared library, if any. This option is only meaningful on ELF platforms which support shared libraries. The effect is that functions that are defined in Julia's version of libuv are used by libjulia and the version of libuv defined in node is used by node. # Resolved Historically, Julia was not built using *-Bsymbolic-functions* flag by default, but now the latest distributions are (as of December 1, 2014) and so this problem should be considered resolved. # Problematic distributions when using Julia compiled from source. Some versions of Linux (for example Redhat Enterprise 5) do not natively have a linker that supports this flag, but this problem can be avoided by using [The CERN toolset](http://linux.web.cern.ch/linux/devtoolset/#dts21) instead. # node 0.10 and Julia 0.4 Recent changes in version 0.4 of Julia has led to an error during initialization.