FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
nodegit/postinstall.js at master · KeysEthos/nodegit · GitHub
KeysEthos
nodegit
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
nodegit
/
postinstall.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (17 loc) · 618 Bytes
Breadcrumbs
nodegit
/
postinstall.js
Copy path
File metadata and controls
executable file
·
20 lines (17 loc) · 618 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env node
var
fs
=
require
(
"fs"
)
;
var
child_process
=
require
(
"child_process"
)
;
if
(
process
.
platform
!==
"linux"
)
{
return
;
}
child_process
.
exec
(
"node lib/nodegit.js"
,
function
(
error
,
stdout
,
stderr
)
{
if
(
stderr
&&
~
stderr
.
indexOf
(
"libstdc++"
)
)
{
console
.
log
(
"[ERROR] Seems like the latest libstdc++ is missing on your system!"
)
;
console
.
log
(
""
)
;
console
.
log
(
"On Ubuntu you can install it using:"
)
;
console
.
log
(
""
)
;
console
.
log
(
"$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test"
)
;
console
.
log
(
"$ sudo apt-get update"
)
;
console
.
log
(
"$ sudo apt-get install libstdc++-4.9-dev"
)
;
}
}
)
;
Back
|
FazBrowse Home
|
New Git URL