我试图开始psql
,但得到了
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
当我使用postgres -D /usr/local/var/postgres
时,出现以下错误:
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib
Referenced from: /usr/local/bin/postgres
Reason: image not found
[1] 2559 abort postgres -D /usr/local/var/postgres
对libicui18n.63.dylib
的快速搜索显示我需要版本63的icu4c
lib。但是brew list icu4c
说我的版本是64.2。
我尝试了brew install icu4c 63
和brew install icu4c@63
,但没有运气。
有人可以帮忙吗?预先感谢。
答案 0 :(得分:8)
就像@dingusjh说的那样,但是要使用 //shape
var geometry = new THREE.BoxGeometry(3.5, 2, 0.01);
var textureLoader = new THREE.TextureLoader();
// textureLoader.setOptions( { imageOrientation: 'flipY' } );
var texture4 = textureLoader.load('front.jpg');
// texture4.setOptions( { imageOrientation: 'flipY' } );
// texture4.wrapS = texture4.wrapT = THREE.;
texture4.anisotropy = 16;
// texture4.repeat = new THREE.Vector2(13, 13);
texture4.wrapS = THREE.RepeatWrapping;
texture4.repeat.x = - 1;
// texture4.repeat.y = 1;
texture4.flipY = true;
var texture5 = textureLoader.load('back.jpg');
texture5.wrapS = THREE.RepeatWrapping;
texture5.repeat.x = - 1;
// texture5.repeat.y = + 1;
texture5.anisotropy = 16;
// create a canvas element
var canvas1 = document.createElement('canvas');
var context1 = canvas1.getContext('2d');
context1.font = "Bold 40px Arial";
context1.fillStyle = "rgba(255,0,0,0.95)";
context1.fillText('User Name', 0, 50);
var texture1 = new THREE.Texture(canvas1)
texture1.needsUpdate = true;
texture1.wrapS = THREE.RepeatWrapping;
texture1.repeat.x = - 1;
var dynamicTexture = new THREEx.DynamicTexture(200, 200);
var materials = [
new THREE.MeshPhongMaterial({ color: 0xFFCC00 }),
new THREE.MeshPhongMaterial({ color: 0xFFCC00 }),
new THREE.MeshPhongMaterial({ color: 0xFFCC00 }),
new THREE.MeshPhongMaterial({ color: 0xFFCC00 }),
new THREE.MeshPhysicalMaterial({ map: texture1 }),
new THREE.MeshPhysicalMaterial({ map: texture4 })
];
var faceMaterial = new THREE.MeshFaceMaterial(materials);
//material
// var material = new THREE.MeshLambertMaterial({ color: 0xFFCC00 });
//combine to a mesh
mesh = new THREE.Mesh(geometry, materials);
dynamicTexture.drawText('Hello', 32, 54, 'red');
scene.add(mesh);
而不是reinstall
命令,以防brew抱怨已经安装了icu4c,您应该尝试install
。完整的命令将是:
extract
答案 1 :(得分:3)
解决方案:
1)cd
到Homebrew的公式目录
cd $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
2)查找所需的提交(icu4c
的63版)进行结账
git log --follow icu4c.rb
3)结帐到新分支
git checkout -b icu4c-63 e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7
4)用新版本重新安装库
brew reinstall ./icu4c.rb
5)切换到重新安装的版本
brew switch icu4c 63.1
6)结帐回主机
git checkout master
来源:
答案 2 :(得分:0)
这应该更容易。
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e7f0f10dc63b1dc1061d475f1a61d01b70ef2cb7/Formula/icu4c.rb
答案 3 :(得分:0)
对我来说重新安装 icu4c 有效 brew reinstall icu4c