cannot open shared object '$pygmentslib'. [global 6.5.2]

Kaushal Modi <[email protected]> Tue, 12 Jan 2016 12:12:37 -0500
Newsgroups gmane.comp.gnu.global.general
Message-ID <CAFyQvY1wqEijMm=-0i3hGyMrLmvohv92qgm65G_ZJx1tt+u9Kw@mail.gmail.com>
--===============8564068344784660692==
Content-Type: multipart/alternative; boundary=001a11c2b0ea619fcf0529262bcb

--001a11c2b0ea619fcf0529262bcb
Content-Type: text/plain; charset=UTF-8

Hi,

I have the Pygments parser setup correctly and it was working fine with
global 6.5.1.

But on updating to 6.5.2, I get the below error:

gtags: cannot open shared object '$pygmentslib'.


The following line in the new ~/.globalrc apparently should set the
$pygmentslib variable, correct?

:pygmentslib=$libdir/gtags/pygments-parser.la:\


I use the below to build global (csh script):


set os_version                      = `lsb_release -a | \grep Release | awk
'{print $2}' | awk -F. '{print $1}'`
set global_version                  = 6.5.2
set global_install_dir              =
"$HOME/usr_local/apps/${os_version}/global/${global_version}"
set my_ctags_bin_location           =
"$HOME/usr_local/apps/${os_version}/ctags/universal/bin/ctags"

make clean
sh reconf.sh
./configure --prefix=${global_install_dir} \
            --with-exuberant-ctags=${my_ctags_bin_location}
make
make install




and following is the content of pygments-parser.la:


# pygments-parser.la - a libtool library file
# Generated by libtool (GNU libtool) 2.4.5
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).
dlname='pygments-parser.so'

# Names of this library.
library_names='pygments-parser.so pygments-parser.so pygments-parser.so'

# The name of the static archive.
old_library='pygments-parser.a'

# Linker flags that cannot go in dependency_libs.
inherited_linker_flags=''

# Libraries that this one depends upon.
dependency_libs=''

# Names of additional weak libraries provided by this library
weak_library_names=''

# Version information for pygments-parser.
current=0
age=0
revision=0

# Is this an already installed library?
installed=yes

# Should we warn about portability when linking against -modules?
shouldnotlink=yes

# Files to dlopen/dlpreopen
dlopen=''
dlpreopen=''

# Directory that this library needs to be installed in:
libdir='/home/kmodi/usr_local/apps/6/global/6.5.2/lib/gtags'




--
Kaushal Modi

--001a11c2b0ea619fcf0529262bcb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I have the Pygments pars=
er setup correctly and it was working fine with global 6.5.1.</div><div><br=
></div><div>But on updating to 6.5.2, I get the below error:</div><div><br>=
</div>gtags: cannot open shared object &#39;$pygmentslib&#39;.<br clear=3D"=
all"><div><div class=3D"gmail_signature"><div dir=3D"ltr"><br></div><div di=
r=3D"ltr"><br></div><div>The following line in the new ~/.globalrc apparent=
ly should set the $pygmentslib variable, correct?</div><div><br></div><div>=
<div><span class=3D"" style=3D"white-space:pre">	</span>:pygmentslib=3D$lib=
dir/gtags/<a href=3D"http://pygments-parser.la">pygments-parser.la</a>:\</d=
iv></div><div><br></div><div><br></div><div>I use the below to build global=
 (csh script):</div><div><br></div><div><br></div><div><div>set os_version =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0=3D `lsb_release -a | \grep Release | awk &#39;{print $2}&#39; | awk -F.=
 &#39;{print $1}&#39;`</div><div>set global_version =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D 6.5.2</div><div>set global_ins=
tall_dir =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D &quot;$HOME/us=
r_local/apps/${os_version}/global/${global_version}&quot;</div><div>set my_=
ctags_bin_location =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D &quot;$HOME/usr_l=
ocal/apps/${os_version}/ctags/universal/bin/ctags&quot;</div><div><br></div=
><div>make clean</div><div>sh reconf.sh</div><div>./configure --prefix=3D${=
global_install_dir} \</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 -=
-with-exuberant-ctags=3D${my_ctags_bin_location}</div><div>make</div><div>m=
ake install</div></div><div><br></div><div><br></div><div><br></div><div><b=
r></div><div>and following is the content of <a href=3D"http://pygments-par=
ser.la">pygments-parser.la</a>:</div><div><br></div><div><br></div><div><di=
v># <a href=3D"http://pygments-parser.la">pygments-parser.la</a> - a libtoo=
l library file</div><div># Generated by libtool (GNU libtool) 2.4.5</div><d=
iv>#</div><div># Please DO NOT delete this file!</div><div># It is necessar=
y for linking the library.</div><div><br></div><div># The name that we can =
dlopen(3).</div><div>dlname=3D&#39;pygments-parser.so&#39;</div><div><br></=
div><div># Names of this library.</div><div>library_names=3D&#39;pygments-p=
arser.so pygments-parser.so pygments-parser.so&#39;</div><div><br></div><di=
v># The name of the static archive.</div><div>old_library=3D&#39;pygments-p=
arser.a&#39;</div><div><br></div><div># Linker flags that cannot go in depe=
ndency_libs.</div><div>inherited_linker_flags=3D&#39;&#39;</div><div><br></=
div><div># Libraries that this one depends upon.</div><div>dependency_libs=
=3D&#39;&#39;</div><div><br></div><div># Names of additional weak libraries=
 provided by this library</div><div>weak_library_names=3D&#39;&#39;</div><d=
iv><br></div><div># Version information for pygments-parser.</div><div>curr=
ent=3D0</div><div>age=3D0</div><div>revision=3D0</div><div><br></div><div>#=
 Is this an already installed library?</div><div>installed=3Dyes</div><div>=
<br></div><div># Should we warn about portability when linking against -mod=
ules?</div><div>shouldnotlink=3Dyes</div><div><br></div><div># Files to dlo=
pen/dlpreopen</div><div>dlopen=3D&#39;&#39;</div><div>dlpreopen=3D&#39;&#39=
;</div><div><br></div><div># Directory that this library needs to be instal=
led in:</div><div>libdir=3D&#39;/home/kmodi/usr_local/apps/6/global/6.5.2/l=
ib/gtags&#39;</div></div><div><br></div><div><br></div><div><br></div><div =
dir=3D"ltr"><br>--<br>Kaushal Modi</div></div></div>
</div>

--001a11c2b0ea619fcf0529262bcb--


--===============8564068344784660692==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Help-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-global

--===============8564068344784660692==--