<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - Shared libraries]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=8672&amp;type=atom"/>
	<updated>2021-08-04T10:45:31Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=8672</id>
		<entry>
			<title type="html"><![CDATA[Re: Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977331#p977331"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>ldconfig didn&#039;t help?</p></blockquote></div><p>No, I did try ldconfig but it didn&#039;t help.</p><p>I also tried copying the executable &quot;Pianoteq 7 STAGE&quot; file to /compat/linux/bin [where all the linux binaries live], plus all the shared libraries in &quot;Pianoteq 7 STAGE/x86-64bit/libs&quot; to /compat/linux/bin/libs/ but still get the error while loading shared libraries.</p>]]></content>
			<author>
				<name><![CDATA[edrich]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7929</uri>
			</author>
			<updated>2021-08-04T10:45:31Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977331#p977331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977324#p977324"/>
			<content type="html"><![CDATA[<p>ldconfig didn&#039;t help?</p>]]></content>
			<author>
				<name><![CDATA[groovy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=1021</uri>
			</author>
			<updated>2021-08-03T19:18:13Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977324#p977324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977321#p977321"/>
			<content type="html"><![CDATA[<p>Thank you sjgcit and groovy for your prompt reply.</p><p>At first I thought the problem was that there might be a string or environment variable specifying the directories to be searched for shared libraries, and that turns out to be true. The line</p><p>ldconfig_paths=&quot;&lt;space-separated list of directories to search&gt;&quot;</p><p>in the file /etc/defaults/rc.conf does the job. However, one of the directories so specified is /usr/local/lib and in there we find:</p><p>/usr/local/lib/libasound.so.2 -&gt; libasound.so.2.0.0<br />/usr/local/lib/libasound.so.2.0.0</p><p>and similarly for the other shared libraries that Pianoteq requires. I am still seeing the error while loading shared libraries so it seems that I need to do some further investigation.</p>]]></content>
			<author>
				<name><![CDATA[edrich]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7929</uri>
			</author>
			<updated>2021-08-03T17:20:21Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977321#p977321</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977294#p977294"/>
			<content type="html"><![CDATA[<p>Interesting, didn&#039;t know, that FreeBSD has a &quot;Linux Compatibility mode&quot;!</p><p>On a common Linux (Debian Buster) the libasound.so.2.0.0 is a content of the (Debian) package libasound2:</p><p># dpkg --search libasound.so.2.0.0<br />libasound2:amd64: /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>After installation of this package a softlink is created as sjgcit already described:</p><p># ls -la /usr/lib/x86_64-linux-gnu/libasound.so.2<br />lrwxrwxrwx 1 root root 18 Jan 27&nbsp; 2019 /usr/lib/x86_64-linux-gnu/libasound.so.2 -&gt; libasound.so.2.0.0</p><p>If you have to do such things manually under the compatibility mode of FreeBSD eventually just the single command <strong>ldconfig</strong> without further options might work. But I just remember doing it in the past on Linux systems, when I manually linked some libs.</p><p>Would be cool if you get PTQ running with FreeBSD!</p><p>PS: late edit</p>]]></content>
			<author>
				<name><![CDATA[groovy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=1021</uri>
			</author>
			<updated>2021-08-02T13:01:39Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977294#p977294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977290#p977290"/>
			<content type="html"><![CDATA[<p>On my Linux Mint 18.3 system libasound.so.2 is not a file but a symbolic link to libasound.so.2.0.0 (which is a file)</p><p>So :</p><p>ldd &quot;Pianoteq 7&quot;<br />&nbsp; &nbsp; libasound.so.2 =&gt; /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007faebf81e000)</p><p>ls -lap /usr/lib/x86_64-linux-gnu/libasound.so.2</p><p>lrwxrwxrwx 1 root root 18 Oct 19&nbsp; 2016 /usr/lib/x86_64-linux-gnu/libasound.so.2 -&gt; libasound.so.2.0.0</p><p>ls -lap /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>-rw-r--r-- 1 root root 1048248 Jan&nbsp; 4&nbsp; 2016 /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>Not sure if that helps, but don&#039;t assume ldd is pointing to a real object.&nbsp; Also check it&#039;s libasound&#039;s dependencies exist.&nbsp; You may need more symbolic links to other files.&nbsp; Check permissions as well.</p>]]></content>
			<author>
				<name><![CDATA[sjgcit]]></name>
				<uri>https://forum.modartt.com/profile.php?id=4926</uri>
			</author>
			<updated>2021-08-02T01:03:14Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977290#p977290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Shared libraries]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=977280#p977280"/>
			<content type="html"><![CDATA[<p>I have been using Pianoteq for a few years on Linux and am now considering moving to FreeBSD [Unix]. FreeBSD has a Linux Compatibility mode. I have installed the Pianoteq [7] files on my FreeBSD system and when I try to run the executable Pianoteq 7 STAGE I receive, as expected, the message &quot;error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory&quot;. (This is long before I am asked to activate the copy of Pianoteq on this machine.)</p><p>As directed by the FreeBSD handbook, I have copied Pianoteq&#039;s shared libraries to the Linux Compatibility directory, but the handbook says I should also set up symbolic links to these libraries. The Linux &#039;ldd&#039; command shows the links having the exact same name as the original shared libraries, e.g. libasound.so.2 =&gt; /lib/x86_64-linux-gnu/libasound.so.2. I have tried placing the links in the same directory (Pianoteq 7 STAGE/x86-64bit/) as the executable Pianoteq file but I still receive the above error message.</p><p>Can anyone please tell me in which directory these links, e.g. libasound.so.2 on the left of the above &#039;=&gt;&#039;, should be placed? Or is there something else that I am missing?</p><p>Any help gratefully received.</p>]]></content>
			<author>
				<name><![CDATA[edrich]]></name>
				<uri>https://forum.modartt.com/profile.php?id=7929</uri>
			</author>
			<updated>2021-08-01T16:36:08Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=977280#p977280</id>
		</entry>
</feed>
