You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/12/31 13:28:29 UTC

[GitHub] [pulsar-client-node] zhaoyajun2009 opened a new issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

zhaoyajun2009 opened a new issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188


   
   **In step “Prerequisites”, in addition to the c++ library, you need to install gcc and g++ dependency, otherwise the following problems will occur in step “Install pulsar-client in your project” later:**
   
   [ec2-user@ip-172-31-0-126 ~]$ npm install pulsar-client
   npm ERR! code 1
   npm ERR! path /home/ec2-user/node_modules/pulsar-client   
   npm ERR! command failed
   npm ERR! command sh -c node-pre-gyp install --fallback-to-build
   npm ERR! make: 进入目录“/home/ec2-user/node_modules/pulsar-client/build”
   npm ERR!   CC(target) Release/obj.target/nothing/../node-addon-api/nothing.o
   npm ERR! make: 离开目录“/home/ec2-user/node_modules/pulsar-client/build”
   npm ERR! Failed to execute '/home/ec2-user/node-v16.13.1-linux-x64/bin/node /home/ec2-user/node-v16.13.1-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/ec2-user/node_modules/pulsar-client/build/Release/libpulsar.node --module_name=libpulsar --module_path=/home/ec2-user/node_modules/pulsar-client/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007068131


   I installed the dependency by install RPM package,(https://pulsar.apache.org/docs/en/client-libraries-cpp/#compilation),
   The success result is the file as below is created in /usr/lib :
   lrwxrwxrwx  1 root root       18 12月 30 22:21 libpulsar.so -> libpulsar.so.2.9.1
   lrwxrwxrwx  1 root root       23 12月 30 22:21 libpulsarnossl.so -> libpulsarnossl.so.2.9.1
   
   Then I installed the gcc and g++ by yum as below:
   sudo yum -y install gcc automake autoconf libtool make
   sudo yum -y install gcc-c++
   
   -----
   > I am trying to install with Docker https://gist.github.com/Hoskins355/c36c9d4c1c69e55427d5ec58d44a2009 using base image "apachepulsar/pulsar-build:centos-7" which should have all dependencies. I tried to add gcc and g++ as well but I am still getting the same error.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 removed a comment on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 removed a comment on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006386780


   > you need to install gcc and g++ dependency with the command of ‘yum install’。
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 edited a comment on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 edited a comment on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006386780


   > you need to install gcc and g++ dependency with the command of ‘yum install’。
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006386780


   > you need to install gcc and g++ dependency
   
   you need to install gcc and g++ dependency


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 removed a comment on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 removed a comment on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007542953


   I got Libpulsar.so in usr/lib
   <img width="283" alt="Screen Shot 2022-01-07 at 10 07 24 AM" src="https://user-images.githubusercontent.com/3084440/148573912-1e9bfce4-68e4-4d7a-9f88-edccd5d7e527.png">
   and I copied that directory into the docker container and changed the permission on it. 
   <img width="266" alt="Screen Shot 2022-01-07 at 10 08 02 AM" src="https://user-images.githubusercontent.com/3084440/148574000-357e077a-6183-46c8-b893-ebac82468ae8.png">
   npm i pulsar-client passes and the container gets deployed but stops running due to this error. 
   <img width="600" alt="Screen Shot 2022-01-07 at 10 07 34 AM" src="https://user-images.githubusercontent.com/3084440/148574083-a65b3b83-84ed-4d88-ab00-84d7cb5c22a8.png">
   Any ideas on why docker container can not access that file? 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007542953


   I got Libpulsar.so in usr/lib
   <img width="283" alt="Screen Shot 2022-01-07 at 10 07 24 AM" src="https://user-images.githubusercontent.com/3084440/148573912-1e9bfce4-68e4-4d7a-9f88-edccd5d7e527.png">
   and I copied that directory into the docker container and changed the permission on it. 
   <img width="266" alt="Screen Shot 2022-01-07 at 10 08 02 AM" src="https://user-images.githubusercontent.com/3084440/148574000-357e077a-6183-46c8-b893-ebac82468ae8.png">
   npm i pulsar-client passes and the container gets deployed but stops running due to this error. 
   <img width="600" alt="Screen Shot 2022-01-07 at 10 07 34 AM" src="https://user-images.githubusercontent.com/3084440/148574083-a65b3b83-84ed-4d88-ab00-84d7cb5c22a8.png">
   Any ideas on why docker container can not access that file? 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007669919


   @ zhaoyajun2009, Thanks I got it working. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 edited a comment on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 edited a comment on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007068131


   I installed the dependency by install RPM package,(https://pulsar.apache.org/docs/en/client-libraries-cpp/#compilation),
   The success result is the files as below  created in /usr/lib :
   lrwxrwxrwx  1 root root       18 12月 30 22:21 libpulsar.so -> libpulsar.so.2.9.1
   lrwxrwxrwx  1 root root       23 12月 30 22:21 libpulsarnossl.so -> libpulsarnossl.so.2.9.1
   
   Then I installed the gcc and g++ by yum as below:
   sudo yum -y install gcc automake autoconf libtool make
   sudo yum -y install gcc-c++
   
   -----
   > I am trying to install with Docker https://gist.github.com/Hoskins355/c36c9d4c1c69e55427d5ec58d44a2009 using base image "apachepulsar/pulsar-build:centos-7" which should have all dependencies. I tried to add gcc and g++ as well but I am still getting the same error.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006389761


   > I am facing the same. @zhaoyajun2009 did you get it working?
   you need to install gcc and g++ dependency with the command of ‘yum install’。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007542953






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] nkurihar closed issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
nkurihar closed issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006180927


   I am facing the same. @zhaoyajun2009 did you get it working?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] zhaoyajun2009 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
zhaoyajun2009 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1023876000


   fix it as follow:
   https://github.com/apache/pulsar/pull/13999


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] nkurihar commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
nkurihar commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1047407354


   Thanks for fixing the document 👍 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 commented on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 commented on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1006598382


   I am trying to install with Docker https://gist.github.com/Hoskins355/c36c9d4c1c69e55427d5ec58d44a2009 using base image "apachepulsar/pulsar-build:centos-7" which should have all dependencies. I tried to add gcc and g++ as well but I am still getting the same error. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar-client-node] Hoskins355 removed a comment on issue #188: When installing the Pulsar Node.js client, the operation steps need to be optimized

Posted by GitBox <gi...@apache.org>.
Hoskins355 removed a comment on issue #188:
URL: https://github.com/apache/pulsar-client-node/issues/188#issuecomment-1007542953


   I got Libpulsar.so in usr/lib
   <img width="283" alt="Screen Shot 2022-01-07 at 10 07 24 AM" src="https://user-images.githubusercontent.com/3084440/148573912-1e9bfce4-68e4-4d7a-9f88-edccd5d7e527.png">
   and I copied that directory into the docker container and changed the permission on it. 
   <img width="266" alt="Screen Shot 2022-01-07 at 10 08 02 AM" src="https://user-images.githubusercontent.com/3084440/148574000-357e077a-6183-46c8-b893-ebac82468ae8.png">
   npm i pulsar-client passes and the container gets deployed but stops running due to this error. 
   <img width="600" alt="Screen Shot 2022-01-07 at 10 07 34 AM" src="https://user-images.githubusercontent.com/3084440/148574083-a65b3b83-84ed-4d88-ab00-84d7cb5c22a8.png">
   Any ideas on why docker container can not access that file? 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org