swig error in ubuntu 16.04

The name of the pictureThe name of the pictureThe name of the pictureClash 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.







share|improve this question


















  • 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










  • 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 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














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.







share|improve this question


















  • 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










  • 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 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












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.







share|improve this question














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.









share|improve this question













share|improve this question




share|improve this question








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 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










  • 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 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












  • 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










  • 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 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







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















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















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



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














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













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)