swig error in ubuntu 16.04

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
For some reason swig on my computer is not configured correctly.
It gives this output on checking version:
$ swig --version
swig: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No such file or directory
whereas on reinstalling it the following output is generated:
piyush@piyush-HP:~/test$ sudo apt-get install swig
[sudo] password for piyush:
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version (3.0.8-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
any suggestions for how to fix it?
thanks.
ubuntu pcre
 |Â
show 12 more comments
up vote
1
down vote
favorite
For some reason swig on my computer is not configured correctly.
It gives this output on checking version:
$ swig --version
swig: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No such file or directory
whereas on reinstalling it the following output is generated:
piyush@piyush-HP:~/test$ sudo apt-get install swig
[sudo] password for piyush:
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version (3.0.8-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
any suggestions for how to fix it?
thanks.
ubuntu pcre
1
swig isn't the problem. it's that your system can't findlibpcre.so.1. Ubuntu has a packagelibpcre3that has alibpcre.so.3file. You could try installing that and see if it satisfies swig's requirements.
â Tim Kennedy
Feb 1 at 18:18
its already installed
â Piyush Verma
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
To do that, you use thelncommand, for example:ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can seeman lnfor more details.
â Time4Tea
Feb 1 at 18:57
 |Â
show 12 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
For some reason swig on my computer is not configured correctly.
It gives this output on checking version:
$ swig --version
swig: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No such file or directory
whereas on reinstalling it the following output is generated:
piyush@piyush-HP:~/test$ sudo apt-get install swig
[sudo] password for piyush:
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version (3.0.8-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
any suggestions for how to fix it?
thanks.
ubuntu pcre
For some reason swig on my computer is not configured correctly.
It gives this output on checking version:
$ swig --version
swig: error while loading shared libraries: libpcre.so.1: cannot open
shared object file: No such file or directory
whereas on reinstalling it the following output is generated:
piyush@piyush-HP:~/test$ sudo apt-get install swig
[sudo] password for piyush:
Reading package lists... Done
Building dependency tree
Reading state information... Done
swig is already the newest version (3.0.8-0ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
any suggestions for how to fix it?
thanks.
ubuntu pcre
edited Feb 1 at 18:06
Time4Tea
866119
866119
asked Feb 1 at 17:55
Piyush Verma
63
63
1
swig isn't the problem. it's that your system can't findlibpcre.so.1. Ubuntu has a packagelibpcre3that has alibpcre.so.3file. You could try installing that and see if it satisfies swig's requirements.
â Tim Kennedy
Feb 1 at 18:18
its already installed
â Piyush Verma
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
To do that, you use thelncommand, for example:ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can seeman lnfor more details.
â Time4Tea
Feb 1 at 18:57
 |Â
show 12 more comments
1
swig isn't the problem. it's that your system can't findlibpcre.so.1. Ubuntu has a packagelibpcre3that has alibpcre.so.3file. You could try installing that and see if it satisfies swig's requirements.
â Tim Kennedy
Feb 1 at 18:18
its already installed
â Piyush Verma
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
To do that, you use thelncommand, for example:ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can seeman lnfor more details.
â Time4Tea
Feb 1 at 18:57
1
1
swig isn't the problem. it's that your system can't find
libpcre.so.1. Ubuntu has a package libpcre3 that has a libpcre.so.3 file. You could try installing that and see if it satisfies swig's requirements.â Tim Kennedy
Feb 1 at 18:18
swig isn't the problem. it's that your system can't find
libpcre.so.1. Ubuntu has a package libpcre3 that has a libpcre.so.3 file. You could try installing that and see if it satisfies swig's requirements.â Tim Kennedy
Feb 1 at 18:18
its already installed
â Piyush Verma
Feb 1 at 18:24
its already installed
â Piyush Verma
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
To do that, you use the
ln command, for example: ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can see man ln for more details.â Time4Tea
Feb 1 at 18:57
To do that, you use the
ln command, for example: ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can see man ln for more details.â Time4Tea
Feb 1 at 18:57
 |Â
show 12 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421257%2fswig-error-in-ubuntu-16-04%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
swig isn't the problem. it's that your system can't find
libpcre.so.1. Ubuntu has a packagelibpcre3that has alibpcre.so.3file. You could try installing that and see if it satisfies swig's requirements.â Tim Kennedy
Feb 1 at 18:18
its already installed
â Piyush Verma
Feb 1 at 18:24
If not, you could try creating a symbolic link named 'libpcre.so.1', pointing to the libpcre.so.3 file, and see if that works. Kind of strange though, because apt should be managing the dependencies.
â Time4Tea
Feb 1 at 18:24
could you please tell me how to create a symbiotic link,i don't know how to do it
â Piyush Verma
Feb 1 at 18:26
To do that, you use the
lncommand, for example:ln -sv [target] [link-name]. You would need to put the link in the location that swig is expecting for libpcre.so.1 and direct it to wherever libpcre.so.3 is installed. Chances are, it is probably looking for the so.1 in the same directory as libpcre.so.3. You can seeman lnfor more details.â Time4Tea
Feb 1 at 18:57